Intellij Idea: One line if on two lines

ide, intellij-idea, java

Solution

Deselect `Simple blocks in one line` in settings -> CodeStyle -> WrappingandBraces, then it should work. It worked for me.

Problem

So I am new to the Intellij Idea IDE and so far I like it a lot. Just having some trouble getting the code style settings exactly how I like them for Java. I am a fan of not using braces for one line if statements but I like for them to be on two lines: ``` if(true) dosomething(); ``` Right now when I run code formatting in Idea, it moves up into one line: ``` if(true) dosomething(); ``` and I find that very hard to read, but I cannot seem to get the settings just right. Can anyone help me out and tell me what I need to set to keep it on two lines but still no braces? Feel pretty dumb not being able to find it. Thanks!

Original source