NetBeans Java code formatter: logical operators on new line

Posted by mizipzor on Stack Overflow See other posts from Stack Overflow or by mizipzor
Published on 2010-05-26T10:13:36Z Indexed on 2010/05/26 13:11 UTC
Read the original article Hit count: 318

Filed under:
|
|

My code looks like this:

if (firstCondition() &&
        secondCondition()) {
    // ... code
}

The default settings for the code formatter in NetBeans wants to put the && on a new line, like this:

if (firstCondition()
        && secondCondition()) {
    // ... code
}

The formatter works well so I would just like to find the setting so it doesnt change the code to the latter. Whats the setting called?

© Stack Overflow or respective owner

Related posts about java

Related posts about netbeans