AdvancedExpressionFolding icon indicating copy to clipboard operation
AdvancedExpressionFolding copied to clipboard

Fold short control statements to one line

Open stoerr opened this issue 4 years ago • 0 comments

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.

stoerr avatar Mar 04 '20 16:03 stoerr