Team members should agree on a common Java code style. Unfortunately, there are many settings in Eclipse that affect code style, and it is quite time-consuming to apply all these settings to another workspace.
To solve this problem, I have created a tool that can export all relevant settings from one workspace and import them to another workspace. These settings are included:
This tool does not affect other settings, such as editor fonts or views.
The workspace that you import to or export from should not be opened in Eclipse when you run this tool.
java -jar eclipse-settings-impex-1.2.jar export "c:\my\workspaces\foo" "c:\tmp\export" MyProfile
This will create the following files in
java -jar eclipse-settings-impex-1.2.jar import "c:\my\workspaces\foo" "c:\tmp\export"
This will override all existing Formatter and Clean Up profiles in the target workspace! On the file system level, only *.prefs files are affected.
This tool has been used successfully with Eclipse Helios, Indigo, Juno, Kepler, Luna, Mars and Neon.
Don't hesitate to send suggestions and comments to Christoph Schneegans (Christoph@Schneegans.de).