Hortsmann style?
http://en.wikipedia.org/wiki/Indent_style#Horstmann_style
How can I setup IDEA to support Hortsmann style coding conventions? Specifically, where do I configure curly bracket and first expression of my code block on the same line?
Thanks!
Please sign in to leave a comment.
Settings|Code Style|Alignment and Braces|Braces Placement
Yes, that puts the curly bracket on the next line. Now, how do I put the first expression of the method on the same line as the opening curly bracket? Maybe I have missed something?
Hello,
You can't achieve that with the current IJ formatting facilities.
Regards, Denis
I am wondering if/when this style might be supported, or how I can advocate for it.
I have been using IDEA since v8, and am constantly fighting the editor. It is not coding with pleasure. Maybe I should cave in and code with one of your supported conventions.
1. You can open a feature request at http://youtrack.jetbrains.net/issues/IDEA requesting this option. Unfortunately at this point given how close they are to shipping v10 I doubt it would make v10.0. Possibly a v10.x, but its hard to say. Once you open a feature request, you can post a link here and those that think it would be useful can vote for it.
2. You can download the source code for IntelliJ IDEA community (see http://www.jetbrains.org/), implement the feature, and then contribute it as a patch so it gets put into IDEA.
Please vote for this issue:
http://youtrack.jetbrains.net/issue/IDEA-61871?projectKey=IDEA