Skip to content

"Select Method and Function Signatures" also selects if, switch, for  #36

@iv-mexx

Description

@iv-mexx

I was testing out the functions of this plugin, had the whole content of some file selected and tried the Select Method and Function Signatures action.

A few lines were selected unexpectedly.

In this sample, the line if(self) is also selected:

-(instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if(self) {
        ...
    }
    return self;
}

In this sample, the line switch(interfaceOrientation) is also selected:

-(AVCaptureVideoOrientation)AVOrientationFromInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    switch(interfaceOrientation) {
        case UIInterfaceOrientationPortrait:
            ...
    }
}

I've noticed that in the .gif in the Readme, the code formatting is different: There, there's always spaces between the keywords and the opening parenthesis while there are no spaces in my samples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions