Setting preferences for all Eclipse workspaces
How can I apply Eclipse preferences to all Eclipse workspaces?
For example if I go:
Window -> Preferences -> General -> Keys -> Add a Shortcut
I would like to use that shortcut in all of my Eclipse workspaces (different projects). Is there a way to apply preferences to all workspaces?
I would also like to configure what perspectives come up by default when I start a new workspace.
If you want preserve all your settings, simply copy the
.metadata/.plugins/org.eclipse.core.runtime/.settings
directory into your desired workspace directory
You can also export the preferences you set in the template workspace and then import them into other workspaces. This is the preferred method supported by Eclipse.
Go to
File->Export then choose General->Preferences
click Next then select the “Export all” radio button and fill in or browse to a file path where you want to save the preferences . Click Finish and your preferences are exported to that file.
Select
File->Switch Workspace,>… to switch to a different workspace.
When Eclipse restarts in the new workspace select File->Import then General->Preferences click Next and browse to your saved preferences file and click Finish to import your preferences into the current workspace.