Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question
up vote 6 down vote accepted

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'.

share|improve this answer
    
I had to go to File > Settings then search for Code Style in IDEA 2016.1. – Steve HHH May 19 at 19:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.