How to change indentation style?

Answered

The default indentation style in IntelliJ is 1TBS, but I prefer the hirstman style. Is it possible to change the style?

For example, I want my curly braces start in a new line.

if (x > 18)
{
    x += 1 ;
}

0
3 comments

Hello,

You could configure braces placement in "File | Settings | Editor | Code Style | Java - Wrapping and Braces - Braces placement"

1
Avatar
Permanently deleted user

Thank you!

0

You are welcome!

0

Please sign in to leave a comment.