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.
To invoke this dialog, click on the Window menu and select the Preferences menu item. The preference pages are organized by category. You can locate a preference page by expanding the nodes of the tree in the left hand side of the dialog box.
Settings can be exported to a file using File -> Export -> Preferences, and you can import it to another Eclipse workspace.
Preferences are stored in the workspace of your application in the . metadata/. plugins/org. eclipse.
The Workspace Mechanic Preference Recorder allows you to record any changes that you make to Eclipse's preferences over a period of time, and export those changes to a task file that can be used by the Workspace Mechanic.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With