Create a new workspace in Eclipse

2019-01-16 02:30发布

问题:

I don't see any menu item I can use to create a new workspace.

What should I use to create a new workspace and move some of the projects from existing default workspace to a new workspace?

I am using Windows with Eclipse 3.7.

回答1:

I use File -> Switch Workspace -> Other... and type in my new workspace name.

(EDIT: Added the composite screen shot.)

Once in the new workspace, File -> Import... and under General choose "Existing Projects into Workspace. Press the Next button and then Browse for the old projects you would like to import. Check "Copy projects into workspace" to make a copy.



回答2:

In Window->Preferences->General->Startup and Shutdown->Workspaces, make sure that 'Prompt for Workspace on startup' is checked.

Then close eclipse and reopen.

Then you'll be prompted for a workspace to open. You can create a new workspace from that dialogue.

Or File->Switch Workspace->Other...



回答3:

You can create multiple workspaces in Eclipse. You have to just specify the path of the workspace during Eclipse startup. You can even switch workspaces via File→Switch workspace.

You can then import project to your workspace, copy paste project to your new workspace folder, then

File→Import→Existing project in to workspace→select project.