braces location

Answered

My coding style come from many years of "C" and now I am learning JAVA and the IDE does not place the braces where I would like them. I need to know the exact setting if there is one to place them where I want them.

My style is:

if(test) {

    Code;

    Code;

    }

The IDE is lining up the closing "}" with the if.

I want this style for class, methods, while, switch, etc.

I am using IntelliJ IDE Community 2020.1

 

0
1 comment

There is no support for such code style in IntelliJ IDEA.

0

Please sign in to leave a comment.