30

I am using the IntelliJ IDEA ide for java coding. By default it produces curly braces on the same line as the function name, like so:

function bla() {
..
}

Can i change it somewhere there so that i will do this instead?:

function bla() 
{
..
}

Thanks!

2 Answers2

40

From the IntelliJ documentation:

Go to the menu File | Settings | Project Settings | Code Style - Java. Select the 'Wrapping and braces' tab. Set 'Braces placement options' to 'Next line'.

tcmb
  • 548
10

Here is the exact working path. I have added screenshot with explanations.

Screenshot "How to change braces position in Intelli

bertieb
  • 7,543
George
  • 211
  • 2
  • 6