How to disable compact braces in IntelliJ idea?

I simply want to change the default auto curly braces from shortening, example of this:

Public void main()


Instead of:

Public void main() {


>Solution :

Open the File, Settings... menu.

In the Settings dialog, choose Editor, Code Style, Java.

Click on the Wrapping and Braces tab.

FInd Braces placement and change "end of line" to "Next line".

Leave a Reply