简体   繁体   English

如何导出Eclipse GUI设置?

[英]How can I export Eclipse GUI settings?

I've created a new workspace in Eclipse, and it starts at the standard GUI settings (eg white, standard font, welcome screen shows up every time Eclipse is opened, etc.). 我已经在Eclipse中创建了一个新的工作区,它从标准的GUI设置开始(例如,每次打开Eclipse时都会显示白色,标准字体,欢迎屏幕等)。 I have another workspace that has all the settings that I like, and I would like to export them and use them in my new workspace. 我有另一个工作区,它具有我喜欢的所有设置,我想导出它们并在新的工作区中使用它们。 How can I do so? 我该怎么办?

I dont think Eclipse provides export functionality for UI settings. 我不认为Eclipse为UI设置提供了导出功能。 Here is what I am doing with my Eclipse workspaces. 这是我在Eclipse工作区中所做的事情。

1) Create empty workspace and customze it to your liking. 1)创建空的工作区,并根据自己的喜好对其进行自定义。 Lets call it 'template' workspace. 让我们称之为“模板”工作区。

2) Copy the whole 'template' workspace to another directory, rename it and use it for your project. 2)将整个“模板”工作空间复制到另一个目录,对其进行重命名并将其用于您的项目。 Next time you need another project with same customization just copy that 'template' workspace and rename according to the other project. 下次您需要另一个具有相同自定义项的项目时,只需复制“模板”工作区并根据另一个项目进行重命名。

Open the workspace from which you want to copy settings. 打开要从中复制设置的工作区。 File -> Switch Workspace -> Other and expand Copy Settings check Workbench Layout . File -> Switch Workspace -> Other然后展开复制设置,检查Workbench Layout See whether this copies the settings that you want by choosing your workspace. 通过选择工作区来查看是否复制了所需的设置。

Doesn't general preferences hold GUI Settings? 常规首选项不保存GUI设置吗?

If so, 如果是这样的话,

File > Export, General > Preferences, export all and then select where to save. 文件>导出,常规>首选项,全部导出,然后选择保存位置。

Then import as usual 然后照常导入

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM