How to Clone an Eclipse Workspace

EclipseWorkspace

Eclipse Problem Overview


I am wondering how to create new clean Eclipse workspace but having all settings from an existing one. Maybe something like cloning but without projects?

Eclipse Solutions


Solution 1 - Eclipse

I use export->preferences->all then change to a new workspace and import the prefs. Works fine (though clearly not very comfortable). Unfortunately, eclipse only offers to copy the layout settings when changing workspaces which is not enough for most purposes.

Solution 2 - Eclipse

You can have a look at the following plugin : http://code.google.com/a/eclipselabs.org/p/workspacemechanic/

It's a plugin developed by google which lets you store your preferences and apply them to any workspace automatically.

If you store it in your dropbox (or any other shared storage), you'll be able to share you preferences between all your computers and even between all your team members.

It's the best and most reliable solution for your problem.

Solution 3 - Eclipse

My preferred method is to copy both the .settings folder and the .launches folder from the old workspace to the new workspace. This seems to do a more complete job than using the export preferences option. You can find both folders under your workspace starting at
.metadata\.plugins
The .settings folder can be found under the org.eclipse.core.runtime folder The .launches folder is under the org.eclipse.debug.core folder.

(Just one of many tricks covered in my two Eclipse Guided Tour video training courses on Pluralsight.)

Windows Explorer Shot of .settings location

Solution 4 - Eclipse

You can try copying the workspace/.metadata folder. It mainly contains plugin information, and it is possible that you don't have some of the plugins. The specific folder that contains important settings is .metadata/.plugins/org.eclipse.core.runtime/.settings. See this article

Solution 5 - Eclipse

No need to copy anything manually, use Workspace Preferences Transferrer - it works great. Here is the quote from the description:

> Extends the File > Switch Workspace… command with the option to > transfer all preferences from the current workspace to the other one.

Just search the Eclipse marketplace and install it from there.

Solution 6 - Eclipse

Need to copy .Metadata that holds the properties of your workspace.

Solution 7 - Eclipse

Best way is to copy the .metadata folder to a new folder and open that folder in Eclipse Workspace dialog box.

Solution 8 - Eclipse

Just copy the whole workspace on your local file system. That works for me because my new feature branch is got the same pom file and thus the overall build matches up. This way I don't need to import all the projects again.

Solution 9 - Eclipse

This plugin will help you: http://marketplace.eclipse.org/content/workspace-preferences-transferrer.

Select "copy preferrences" when switch to or create a new workspace.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionZemzelaView Question on Stackoverflow
Solution 1 - EclipsekostjaView Answer on Stackoverflow
Solution 2 - Eclipsexavier.seignardView Answer on Stackoverflow
Solution 3 - EclipseTodView Answer on Stackoverflow
Solution 4 - EclipseBozhoView Answer on Stackoverflow
Solution 5 - EclipseMatija HanView Answer on Stackoverflow
Solution 6 - Eclipsesan242View Answer on Stackoverflow
Solution 7 - EclipseMSNView Answer on Stackoverflow
Solution 8 - EclipsesomenicknameView Answer on Stackoverflow
Solution 9 - EclipseLeonView Answer on Stackoverflow