Community
Participate
Working Groups
I would like to add support for my coding style in the editor. I would like to have the curly braces indented like this: private JTextField getCounter() { if (counter == null) { counter = new JTextField(); counter.setSize(new Dimension(336, 22)); } return counter; } currently the closest I can achieve is like this: private JTextField getCounter() { if (counter == null) { counter = new JTextField(); counter.setSize(new Dimension(336, 22)); } return counter; } I realize that my style is not the most popular, but I have been using it for 20 years and prefer it. It seems with all the flexibility the the IDE supports that this one item would not be a big deal.
Do you mean by the formatter or while typing? Can you configure the formatter to match your style?
Created attachment 64655 [details] Screen shot of settings
I did not see a way to configure it to operate this way. I was meaning the format as you type options. The closest I could get formated with the braces not indented, this means that I have to go back and manually change them after I enter them. If it is possible to achieve this kind of automatic formatting is achievable, please describe which settings to set to do this. I will attach a screen shot showing the issue. I am sorry if I am just unfamiliar with it and missed the option. I have just started to use eclipse as our new IDE is built around it. But I still use slickedit most of the time but eclipse is good enough that I may switch to it once I figure it out completely.
We use the formatter prefs for auto-indenting i.e. we first need this being supported by the formatter. Moving to JDT Core.
The brace setting "Next line indented" is exactly what you are looking for.
Closing as INVALID.
Verify for 3.3M7 with I20070503-1400.