我可以在Eclipse中的哪里更改默认工作区?


当前回答

打开命令提示符。 切换到eclipse主目录并输入"eclipse -clean" 如。 C: / eclipse > eclipse抹杀的

这将要求选择工作区。它还将强制将其设置为默认工作区。

进入“eclipsehome—>configuration—>settings”文件夹。

在记事本中打开org.eclipse.ui.de.prefs。

将此属性从false设置为true。

SHOW_WORKSPACE_SELECTION_DIALOG = true

每次都会要求您选择工作空间。

其他回答

我认为这个问题的意思是如何更改默认工作空间,以便在Eclipse启动时自动加载所需的工作空间:

Go under preferences then type "workspace" in the search box provided to filter the list. Alternatively you can go to General>Startup and Shutdown>Workspaces. There you can set a flag to make Eclipse prompt you to select a workspace at startup by checking the "Prompt for workspace at startup" checkbox. You can set the number of previous workspaces to remember also. Finally there is a list of recent workspaces. If you just remove all but the one you want Eclipse will automatically startup with that workspace.

转到eclipse\configuration\ 打开“config.ini”文件 修改行 osgi.instance.area.default = " F: / Workspace / Java " 其中“F:/Workspace/Java”应该是您的默认工作区!

如果你想在配置文件中手动更改最近的工作空间 Org.eclipse.ui.ide.prefs存在于

eclipse > configuration > .settings > org.eclipse.ui.ide.prefs

在编辑器中打开这个文件,在第2行中找到RECENT_WORKSPACES,在这一行中你可以看到最近的工作区,可以更改甚至删除它们。

您可以检查启动eclipse时出现的选项。请看下图

文件>切换工作空间>添加您喜欢的工作空间> Eclipse将使用您想要的工作空间重新启动。