M.kazem Akhgary
M.kazem Akhgary

Reputation: 19189

keep statements next to each other while formatting the code

I tend to use Alt+Ctrl+L to reformat my code when im done coding but i dont want to break lines where i write statements next to each other.

this should remain as it is.

setSupportActionBar(toolbar);
ActionBar actionBar = getSupportActionBar(); assert actionBar != null;

but this should break the line.

{ foo();

is there option for that?

Upvotes: 0

Views: 37

Answers (1)

M.kazem Akhgary
M.kazem Akhgary

Reputation: 19189

Found it!

Settings
  Editor
    Code Style
      Java
        Wrapping and Braces
          Keep when reformatting
            Multiple expressions in one line <= tick this

Upvotes: 1

Related Questions