How to Clone an Eclipse Workspace

前端 未结 9 711
一整个雨季
一整个雨季 2020-12-04 11:36

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?

相关标签:
9条回答
  • 2020-12-04 12:16

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

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

    0 讨论(0)
  • 2020-12-04 12:17

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

    0 讨论(0)
  • 2020-12-04 12:19

    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

    0 讨论(0)
  • 2020-12-04 12:26

    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

    0 讨论(0)
  • 2020-12-04 12:26

    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.

    0 讨论(0)
  • 2020-12-04 12:33

    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.

    0 讨论(0)
提交回复
热议问题