IntelliJ Perl Camelcade插件:行注释#位置调整设置咨询
Adjusting Line Comment Indentation for Perl (Camelcade) in IntelliJ
Absolutely! You can tweak the Camelcade plugin's line comment behavior to add the # after the existing line indent instead of forcing it to column 1. Here's the step-by-step process:
- Open IntelliJ's Settings/Preferences (use
Ctrl+Alt+Son Windows/Linux, orCmd+,on macOS). - Navigate to Editor > Code Style > Perl.
- Switch to the Code Generation tab.
- Look for the checkbox labeled "Line comment at first column" and uncheck it.
- Click Apply then OK to save the changes.
Once you've made this adjustment, commenting your line will behave exactly as you want:
Original line:
my $sRegexPattern = $self->getMetaFields;Before change (commented):
# my $sRegexPattern = $self->getMetaFields;After change (commented):
# my $sRegexPattern = $self->getMetaFields;
If you ever want to revert back to the original behavior, just re-check that same checkbox in the settings.
内容的提问来源于stack exchange,提问作者feumw
相关产品推荐
相关产品推荐

