设置所有Eclipse工作区的首选项 [英] Setting preferences for all Eclipse workspaces

查看:158
本文介绍了设置所有Eclipse工作区的首选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将eclipse首选项应用于所有eclipse工作区?

How can I apply eclipse preferences to all eclipse workspaces?

例如,如果我去:

Window -> Preferences -> General -> Keys -> Add a Shortcut

我想在所有的eclipse工作区(不同的项目)中使用该快捷方式。有没有办法将偏好设置到所有工作区?

I would like to use that shortcut in all of my eclipse workspaces (different projects). Is there a way to apply preferences to all workspaces?

我还想在启动新工作区时配置默认情况下出现的透视图。

I would also like to configure what perspectives come up by default when I start a new workspace.

推荐答案

如果要保留所有设置,只需复制

If you want preserve all your settings, simply copy the

.metadata/.plugins/org.eclipse.core.runtime/.settings 

目录到您所需的工作区目录

directory into your desired workspace directory

您还可以导出在模板工作区中设置的首选项,然后将其导入到其他工作区。这是Eclipse支持的首选方法。

You can also export the preferences you set in the template workspace and then import them into other workspaces. This is the preferred method supported by Eclipse.

转到

File->Export then choose General->Preferences

单击下一步,然后选择导出所有单选按钮,并填写或浏览到要保存首选项的文件路径。单击完成,您的首选项将导出到该文件。

click Next then select the "Export all" radio button and fill in or browse to a file path where you want to save the preferences . Click Finish and your preferences are exported to that file.

选择

File->Switch Workspace,>… to switch to a different workspace.

当Eclipse在新工作区中重新启动时,选择File-> Import,然后选择General-> Preferences,然后单击Next到您保存的首选项文件,然后单击完成将您的首选项导入到当前工作区。

When Eclipse restarts in the new workspace select File->Import then General->Preferences click Next and browse to your saved preferences file and click Finish to import your preferences into the current workspace.

这篇关于设置所有Eclipse工作区的首选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆