Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliJ Perl Camelcade - Comment at first column #1767

Closed
feumw opened this issue Apr 17, 2018 · 0 comments
Closed

IntelliJ Perl Camelcade - Comment at first column #1767

feumw opened this issue Apr 17, 2018 · 0 comments

Comments

@feumw
Copy link

feumw commented Apr 17, 2018

I'd like to change the behaviour of the Comment with line comment function. I'm using the Perl (Camelcade) Plugin.

When I comment with line comment the # will be added at the first column of the line. Is there any chance to set this on the first character?

Example:

sub test {
    my $log           = $self->{__logger};
    my $sRegexPattern = $self->getMetaFields;

is actual becoming

sub test {
    my $log            = $self->{__logger};
#    my $sRegexPattern = $self->getMetaFields;

My preference would be:

sub test {
    my $log            = $self->{__logger};
    # my $sRegexPattern = $self->getMetaFields;

Is there way to change this behaviour?

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

Addition:
We use Perl::Tidy and Perl::Tidy will do:

sub test {
    if ( something ) {
        my $log           = $self->{__logger};
#        my $sRegexPattern = $self->getMetaFields;
    }
    ...

-->

sub test {
    if ( something ) {
        my $log           = $self->{__logger};
        #        my $sRegexPattern = $self->getMetaFields;
    }
    ...

That is the reasion why I'd like to change this behaviour. E.g.: Visual Studio Code and other editors do:

sub test {
    if ( something ) {
        my $log           = $self->{__logger};
        # my $sRegexPattern = $self->getMetaFields;
    }
    ...

-->

sub test {
    if ( something ) {
        my $log           = $self->{__logger};
        # my $sRegexPattern = $self->getMetaFields;
    }
    ...

so Perl::Tidy won't ruin the look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants