如何防止 PerlTidy 调整我的作业?
默认情况下,PerlTidy 会在我的代码中排列分配。例如,
PerlTidy 将此... 更改
my $red = 1;
my $green = 2;
my $yellow = 3;
my $cyan = 4;
为此...
my $red = 1;
my $green = 2;
my $yellow = 3;
my $cyan = 4;
我如何防止这种情况发生? 我翻遍了手册,但找不到解决方案。
谢谢!
By default, PerlTidy will line up assignments in my code. E.g.
PerlTidy changes this...
my $red = 1;
my $green = 2;
my $yellow = 3;
my $cyan = 4;
...into this...
my $red = 1;
my $green = 2;
my $yellow = 3;
my $cyan = 4;
How do I prevent this from happening?
I've trawled the manual but I can't find a solution.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅
-aws
选项 (--add-whitespace
) 的讨论。默认情况下启用-aws
。您可以使用-naws
(删除空格是可以的,但不要添加)或-fws
(不要添加或删除空格)来更改此行为。详细信息此处。See the discussion of the
-aws
option (--add-whitespace
). By default-aws
is enabled. You can alter this behavior using-naws
(deleting whitespace is OK, but don't add) or-fws
(don't add or delete whitespace). Details here.