我想改变Comment with line comment
功能的行为。我正在使用Perl(Camelcade)插件。
当我使用行注释发表评论时,#
将添加到该行的第一列。有没有机会在第一个角色上设置这个?
示例:
sub test {
my $log = $self->{__logger};
my $sRegexPattern = $self->getMetaFields;
实际上变为:
sub test {
my $log = $self->{__logger};
# my $sRegexPattern = $self->getMetaFields;
我的偏好是:
sub test {
my $log = $self->{__logger};
# my $sRegexPattern = $self->getMetaFields;
有没有办法改变这种行为?
IntelliJ IDEA 2017.3.3 (Community Edition)
Build #IC-173.4301.25, built on January 15, 2018
JRE: 1.8.0_152-release-1024-b11 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.4
+ Perl Camelcade Plugin
<小时/> 的增加:
我们使用Perl :: Tidy和Perl :: Tidy将:
sub test {
if ( something ) {
my $log = $self->{__logger};
# my $sRegexPattern = $self->getMetaFields;
}
...
- &GT;
sub test {
if ( something ) {
my $log = $self->{__logger};
# my $sRegexPattern = $self->getMetaFields;
}
...
这就是为什么我想改变这种行为的原因。例如:Visual Studio Code和其他编辑:
sub test {
if ( something ) {
my $log = $self->{__logger};
# my $sRegexPattern = $self->getMetaFields;
}
...
- &GT;
sub test {
if ( something ) {
my $log = $self->{__logger};
# my $sRegexPattern = $self->getMetaFields;
}
...
所以Perl :: Tidy不会毁了这个样子。