Skip to content

Fold short control statements to one line #139

@stoerr

Description

@stoerr

I'd like to suggest an option to fold short conditional statements into one line:

if (xxx == null) {
    xxx = foo();
}

could be displayed as
if (xxx == null) { xxx = foo(); }
to reduce the needed vertical space.

Possibly the same thing could be done for other short control statements like while or for - I have no opinion on that. It would do something like the IntelliJ code style option "simple blocks in one line" - but without changing the sourcecode and thus avoiding to collide with others' preferences.

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