Skip to content

Would like to be able to align by longest operator #2

@samloeschen

Description

@samloeschen

Hey there, currently a block like this:

{
    int x = 0;
    y += 1;
    int z = 2; 
}

will align to look like this:

{
    int x   = 0;
    y       += 1;
    int z   = 2;
}

and it would be awesome if there was an option to align/indent by the length of the longest operator, so that it would look like this:

{
    int x   = 0;
    y      += 1;
    int z   = 2;
}

I often have blocks with multiple operators and assignments, and would really love to be able to align them all cleanly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions