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

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() 


share|improve this question

1 Answer 1

up vote 0 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

Your Answer


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.