我可以在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启动时自动加载所需的工作空间:
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.
如果你的意思是“改变工作空间”,去File ->切换工作空间
文件>切换工作空间>添加您喜欢的工作空间> Eclipse将使用您想要的工作空间重新启动。
在Ubuntu上我去了
~/.eclipse/org.eclipse.platform_4.3.0_1473617060_linux_gtk_x86_64/configuration/config.ini
并在底部加了这一行
osgi.instance.area.default=@user.home/workspace
并将工作空间更改为dir路径,从我的家到我放置工作空间的地方。
我把@Frank的回答和@Ronan Quillevere的评论结合起来
这是唯一的答案,你得到的第一个当你搜索默认工作空间,但任何解决方案都不能解决我的问题,所以我遵循这一步默认工作空间:
第一个复制eclipse的快捷图标。 右键点击属性, 使用-data属性添加您的工作区路径,
目标:
D:\eclipse_path\eclipse.exe -clean -data
为了在此工作区中使用相同的快捷方式和首选项, 从eclipse中导出通用的——>首选项,它将生成一个.epf文件。
因此,只需将.epf文件导入到新的工作空间中,就完成了。
推荐文章
- 访问限制:'Application'类型不是API(必需库rt.jar的限制)
- Android Eclipse -无法找到*.apk
- 通过SSH使用Eclipse完成远程项目
- javac和Eclipse编译器之间的区别是什么?
- 如何在清洁模式下运行eclipse ?如果我们这样做会发生什么?
- 如何在Eclipse中更改动态web项目的上下文根?
- Eclipse错误:间接引用所需的.class文件?
- 如何在Eclipse中只使用键盘去一个错误?
- 如何在Eclipse中生成Javadoc注释?
- 如何在EPF Composer 1.5中删除一个规程?
- Eclipse调试器总是阻塞在ThreadPoolExecutor上,没有任何明显的异常,为什么?
- 是什么原因导致Eclipse中导入的Maven项目默认使用Java 1.5而不是Java 1.6,我如何确保它不使用?
- 如何从Eclipse设置java.library.path
- 如何使Eclipse/EGit在更新后识别现有的存储库信息?
- 为什么每当我创建一个新项目时,Eclipse都会自动添加appcompat v7库支持?