Whenever I switch workspaces/Eclipse installs I need to copy/redo the preferences:
I would like to maintain these settings in an unitary way, preferrably under source control. How can I do that?
I know about 'copy settings' when creating a new workspace, but it does not keep updated copies.
You could of course export/import those settings.
The other approach is to enable project specific settings for some settings.
We have a very small Git repository with those kind of files:
.settings/org.eclipse.jdt.core.prefs
(compiler problem settings and formatter rules).settings/org.eclipse.jdt.ui.pref
(cleanup rules, common code templates)The common settings are just copied/merged in each projects .settings
directory, ensuring common rules amongst all projects, whatever the workspace.