Eclipse 首选项文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7877438/
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
Eclipse Preferences File
提问by Cerin
Where does Eclipse store the keyboard shortcuts configured in the Preferences dialog? I have a lot of custom keyboard shortcuts, and I find it's a huge chore to manually re-enter them whenever I setup a in Eclipse installation. I'm assuming Eclipse stores these configurations under ~/.eclipse, but after searching through those file I can't seem narrow down which specific file(s) contain my preferences.
Eclipse 在哪里存储在首选项对话框中配置的键盘快捷键?我有很多自定义键盘快捷键,我发现每当我在 Eclipse 安装中设置 a 时手动重新输入它们是一件很麻烦的事。我假设 Eclipse 将这些配置存储在 ~/.eclipse 下,但在搜索这些文件后,我似乎无法缩小包含我的首选项的特定文件的范围。
How would I programmatically backup and restore my Eclipse preferences?
我将如何以编程方式备份和恢复我的 Eclipse 首选项?
回答by Moyshe
According to: http://robertmarkbramprogrammer.blogspot.com/2007/07/eclipse-shortcuts.html
根据:http: //robertmarkbramprogrammer.blogspot.com/2007/07/eclipse-shortcuts.html
Go to File > Export > Preferences. Select "Export All" and fill out the destination path in the "To preference file" field. Click "Finish" to output a .epf file. Import these with File > Import > Preferences.
转到文件 > 导出 > 首选项。选择“全部导出”并在“到首选项文件”字段中填写目标路径。单击“完成”以输出 .epf 文件。使用文件 > 导入 > 首选项导入这些。
回答by bilash.saha
This can be done by use of the Import and Export buttons.The currently set preferences are stored in a .epf file that you specify when you export. Any preference that is still set to it's default value will not be saved in this file. When you import from a .epf file any preferences defined in that file will be set to the value stored. Preferences not stored in the .epf file are not affected.
这可以通过使用导入和导出按钮来完成。当前设置的首选项存储在您在导出时指定的 .epf 文件中。任何仍设置为其默认值的首选项都不会保存在此文件中。当您从 .epf 文件导入时,该文件中定义的任何首选项都将设置为存储的值。未存储在 .epf 文件中的首选项不受影响。
Source : http://www.eclipse.org/articles/Article-Preferences/preferences.htm
来源:http: //www.eclipse.org/articles/Article-Preferences/preferences.htm
Look at these links.This may help you.
看看这些链接。这可能对你有帮助。
http://www.winksaville.com/blog/programming/eclipse-settings-and-moving-workspaces/
http://www.winksaville.com/blog/programming/eclipse-settings-and-moving-workspaces/
http://coskunscastle.blogspot.com/2007/11/how-to-export-eclipse-workbench-layout.html
http://coskunscastle.blogspot.com/2007/11/how-to-export-eclipse-workbench-layout.html