How to delete a workspace in Eclipse?

前端 未结 6 1147
执笔经年
执笔经年 2021-01-29 17:33

How to delete a workspace in Eclipse?

相关标签:
6条回答
  • 2021-01-29 17:44

    It's possible to remove the workspace in Eclipse without much complications. The options are available under Preferences->General->Startup and Shutdown->Workspaces.

    Note that this does not actually delete the files from the system, it simply removes it from the list of suggested workspaces. It changes the org.eclipse.ui.ide.prefs file in Jon's answer from within Eclipse.

    0 讨论(0)
  • 2021-01-29 17:52

    For Eclipse PDT in Mac OS, once you have deleted the actual workspace directory the option to select and switch to that workspace will still be available unless you delete the entry from Preferences >> General >> Startup and Shutdown >> Workspaces.

    0 讨论(0)
  • 2021-01-29 17:55

    Click on the menu Window > Preferences and go to Workspaces like below :

    | General
        | Startup and Shutdown
            | Workspaces
    

    Select the workspace to delete and click on the Remove button.

    0 讨论(0)
  • 2021-01-29 18:03

    Just delete the whole directory. This will delete all the projects but also the Eclipse cache and settings for the workspace. These are kept in the .metadata folder of an Eclipse workspace. Note that you can configure Eclipse to use project folders that are outside the workspace folder as well, so you may want to verify the location of each of the projects.

    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] ). Note that this does not remove the files itself. For old versions of Eclipse you will need to edit the org.eclipse.ui.ide.prefs file in the configuration/.settings directory under your installation directory (or in ~/.eclipse on Unix, IIRC).

    0 讨论(0)
  • 2021-01-29 18:04

    I'm not sure about older versions, but from NEON onward, you can just right click on workspace and select Remove from launcher selection option.

    Eclipse Neon - Remove Workspace

    of course this won't remove the original files. It simply removes it from the list of suggested workspaces.

    0 讨论(0)
  • 2021-01-29 18:09

    Just go to the \eclipse-java-helios-SR2-win32\eclipse\configuration.settings directory and change or remove org.eclipse.ui.ide.prefs file.

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