IntelliJ simple methods in onle line after closing class file


if i have a simple method like that:
private void helloWorld()
     System.out.println("Hello world");

after closing the class file and opening it again, intellij reformats it as

private void helloWorld() { System.out.println("Hello world"); }

How can i disable this feauture?
I wnat intellij to keep method intact.

1 comment
Comment actions Permalink

Are you sure the file is formatted like this on disk (verify with other editor)?

It looks like just a visual folding controlled by this setting:


Please sign in to leave a comment.