Import/Export Code Formatting Settings from NetBeans

In short: To share settings (e.g. code formatting) from NetBeans with Eclipse a little bit 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 projectper-project-settings
  • Other possibilities? Let me know!

One thought on “Import/Export Code Formatting Settings from NetBeans

  1. Is there any way to do it in reverse? Import Eclipse formatting settings to NetBeans?

Comments are closed.