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


当前回答

我认为这个问题的意思是如何更改默认工作空间,以便在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中,转到File -> Switch Workspace,选择或创建一个新的工作区。

如果你的意思是“改变工作空间”,去File ->切换工作空间

我认为这个问题的意思是如何更改默认工作空间,以便在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.

Frank建议在config.ini中修改的任何内容都是正确的。在这种情况下,如果这没有帮助,您需要从最近的工作空间删除路径,如下所示。

进入eclipse\configuration\org.eclipse.ui.ide.prefs\ 打开文件"org。eclipse。ui.ide.prefs" 删除recent_workspace中的第一个路径。 MAX_RECENT_WORKSPACES = 5 RECENT_WORKSPACES = /用户/ wrokspace1 \ n /用户/ wrokspace2 / wrokspace3 \ n \ n /用户/用户/ wrokspace4 RECENT_WORKSPACES_PROTOCOL = 3 SHOW_WORKSPACE_SELECTION_DIALOG = false eclipse.preferences.version = 1

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