如何保存 Eclipse 设置(字体、格式等)?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4214526/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to save Eclipse settings (fonts, formatting, etc.)?
提问by Tony the Pony
How can I export my settings (fonts, syntax coloring, formatting, etc.) in Eclipse 3.6, so I can use them again in another installation?
如何在 Eclipse 3.6 中导出我的设置(字体、语法着色、格式等),以便我可以在另一个安装中再次使用它们?
回答by Alois Cochard
You can save the folder '.metadata' in your workspace.
您可以在工作区中保存文件夹“.metadata”。
This folder contain your preferences, simply restore it after a re-installation and your done.
此文件夹包含您的首选项,只需在重新安装和完成后恢复即可。
The '.metadata' folder can contain projects/plugins specific settings, the 'core' eclipse settings are in: '.metadata/.plugins/org.eclipse.core.runtime/.settings'
'.metadata' 文件夹可以包含项目/插件的特定设置,'core' eclipse 设置在:'.metadata/.plugins/org.eclipse.core.runtime/.settings'
Theses 'core' settings can be exported using 'File -> Export -> Preferences' too as Csaba_H said.
正如 Csaba_H 所说,这些“核心”设置也可以使用“文件 -> 导出 -> 首选项”导出。
回答by Csaba_H
Settings can be exported to a file using File -> Export -> Preferences, and you can import it to another Eclipse workspace.
可以使用 File -> Export -> Preferences 将设置导出到文件,您可以将其导入到另一个 Eclipse 工作区。