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


当前回答

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

其他回答

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

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

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

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

如果您正在讨论更改从eclipse中启动的java程序的工作目录,那么在运行配置中会有相应的空间。 如果你去运行菜单,选择“运行配置…”,然后选择你的运行配置,然后在Java应用程序的“参数”选项卡上有一个地方让你编辑“工作目录”。这将改变将用于启动java程序的当前目录。

如果您的意思是默认的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.