Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting preferences for all Eclipse workspaces

Tags:

eclipse

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.

like image 251
sixtyfootersdude Avatar asked Oct 28 '11 19:10

sixtyfootersdude


People also ask

How do I set preferences in Eclipse?

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.

How do I manage workspaces in Eclipse?

You can remove the workspace from the suggested workspaces by going into the General/Startup and Shutdown/Workspaces section of the preferences (via Preferences > General > Startup & Shudown > Workspaces > [Remove] ).

How do I change my workspace in Eclipse?

go to the Eclipse menu → (Windows →) Preferences → General → Workspace → Build.


1 Answers

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.

like image 191
bilash.saha Avatar answered Sep 28 '22 17:09

bilash.saha