What IDE you suggest ?
What IDE follows my convention ?
Joined: Oct 13, 2005
I usually use Eclipse. You can set preferences as properties of the current project, and “export” them as a configuration file.
Maybe somebody will know how to do it in NetBeans. I found a few possible links by Googling: maybe this will help, or this. The process seems quite simple, and similar to what I am used to doing with Eclipse.
This is configurable in NetBeans. I'm using NetBeans 7.2.1, but I think the process will be very similar in other versions:
1) Chose Tools/Options from the menu
2) In the Options form, click the Editor button and choose Formatting tab
3) Choose Java in the Language combo box. Now browse individual categories in the Category combo box, there is a lot of options. The position of the braces can be configured in the Braces category.
Eclipse enables you to control all aspects of coding style. Look at Windows | Preferences | Java | Code Style | Formatter. There you can tweak the formatting to your hearts content. I recommend first making a copy of an existing profile and modifying the copy.
Also, while on the Preferences dialog, look at Java | Editor | Save Actions - one of the things you can do automatically when saving is reformatting.