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


当前回答

我的kepler eclipse在引导时没有响应(在安装GAE支持后不久),我追踪到一个损坏的工作区。我通过关闭开普勒来修复这个问题,重命名工作空间目录(正在使用),这样开普勒就可以正常启动,没有工作空间,然后使用文件>>切换工作空间来生成新的工作空间。然后开始填充我的旧项目,我仍然需要。

其他回答

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

在Eclipse中,转到File -> Switch Workspace,选择或创建一个新的工作区。

我认为这个问题的意思是如何更改默认工作空间,以便在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的快捷图标。 右键点击属性, 使用-data属性添加您的工作区路径,

目标:

D:\eclipse_path\eclipse.exe -clean -data

为了在此工作区中使用相同的快捷方式和首选项, 从eclipse中导出通用的——>首选项,它将生成一个.epf文件。

因此,只需将.epf文件导入到新的工作空间中,就完成了。

如果您想要更改程序执行的目录,请转到“运行”选项卡中的“运行配置”。

然后选择你的项目,转到“Arguments”选项卡,你可以在那里更改目录。默认情况下,它是项目的根目录。