Sunday 21 October 2018

java - How to change brace position in IntelliJ IDE?


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!



Answer



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


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...