Import/Export Code Formatting Settings from NetBeans
In short: To share settings (e.g. code formatting) from NetBeans with Eclipse a little bit of work has to be done. For NetBeans you have the following possibilities
- Either directly use the file
'home'/.netbeans/6.0/config/Preferences/org/netbeans/modules/java/source/CodeStyle/default.properties
- Use the eclipse importer. Now you can use the project within NetBeans and sync etc.
Or you could load the settings (e.g. the settings from previously
imported eclipse project) via “right-clicking the
project”->Properties->Formatting->Use project specific
options->Load from other project
Other possibilities? Let me know
From http://karussell.wordpress.com/
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)





Comments
Jessica-aileen Alten replied on Tue, 2009/10/06 - 6:34am
alex scott replied on Tue, 2009/10/06 - 8:38am
Emmanuel Hugonnet replied on Fri, 2009/10/09 - 3:00pm
I have coded a simple Maven plugin that uses Eclipse's formatter to reformat your Java code:
<a href="http://repository.silverpeas.org/docs/code-formatter/">Maven code formatter plugin</a>
I wanted to do the same with Netbeans own code formatter but I just can't find enought documentation to start.
Emmanuel