PHP-Netbeans: How to change formatting for multi-conditional if statements

后端 未结 1 709
温柔的废话
温柔的废话 2021-01-13 06:25

I have the following Code:

if(
    condition1
    && condition2
    && condition3
) {
    // do something
}

And after havin

相关标签:
1条回答
  • 2021-01-13 06:59

    Netbeans has changed the syntax slightly. You'll need to do a line break at the end of the AND operator instead of before and it will retain the breaks after a format.

    if(
        condition1 &&
        condition2 &&
        condition3
    ) {
        // do something
    }
    
    0 讨论(0)
提交回复
热议问题