Intellij code style linewrap braceless if

Answered

How do I set the Java code style to insert line breaks into braceless if statements? like this:

if (condition) doSomething();

==>

if (condition)
    doSomething();

 

Thank you!

1
1 comment

Hi Wdv50jkc,

You can uncheck the following box in File | Settings | Editor | Code Style | Java > 'Wrapping and Braces' tab:

0

Please sign in to leave a comment.