本文介绍了如何防止PerlTidy调整我的作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
默认情况下,PerlTidy将在我的代码中排列作业.例如
By default, PerlTidy will line up assignments in my code. E.g.
PerlTidy对此进行了更改...
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.
谢谢!
推荐答案
请参见-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.
这篇关于如何防止PerlTidy调整我的作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!