如何在Eclipse中删除工作区?

本文翻译自:How to delete a workspace in Eclipse?

如何在Eclipse中删除工作区?


#1楼

参考:https://stackoom.com/question/29VL/如何在Eclipse中删除工作区


#2楼

It's possible to remove the workspace in Eclipse without much complications. 可以在Eclipse中删除工作区而不会出现太多复杂情况。 The options are available under Preferences->General->Startup and Shutdown->Workspaces. 这些选项在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. 它在Eclipse的回答中更改了org.eclipse.ui.ide.prefs文件。


#3楼

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. 选择要删除的工作区,然后单击“ 删除”按钮。


#4楼

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. 我不确定旧版本,但是从NEON开始,您可以右键单击工作区并选择从启动器选择中删除选项。

Eclipse Neon  - 删除工作区

of course this won't remove the original files. 当然这不会删除原始文件。 It simply removes it from the list of suggested workspaces. 它只是将其从建议的工作区列表中删除。


#5楼

只需转到\\ eclipse-java-helios-SR2-win32 \\ eclipse \\ configuration.settings目录并更改或删除org.eclipse.ui.ide.prefs文件。


#6楼

Just delete the whole directory. 只需删除整个目录即可。 This will delete all the projects but also the Eclipse cache and settings for the workspace. 这将删除所有项目,但也删除工作空间的Eclipse缓存和设置。 These are kept in the .metadata folder of an Eclipse workspace. 它们保存在Eclipse工作区的.metadata文件夹中。 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. 请注意,您可以将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] ). 您可以通过进入首选项的常规/启动和关闭/工作区部分(通过首选项>常规>启动和收费>工作区> [删除])从建议的工作区中删除工作区。 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). 对于旧版本的Eclipse,您需要编辑安装目录下的configuration/.settings目录中的org.eclipse.ui.ide.prefs文件(或Unix上的~/.eclipse ,IIRC)。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值