Eclipse语法高亮选项保存并恢复 [英] Eclipse syntax highlighting preferences save and restore
问题描述
顺便说一下,我使用Eclipse 3.4 Ganymede。有没有人找到可靠的方法来保存和恢复Eclipse语法高亮设置?
<我最终想出了如何做到这一点。
我只想提前提及我尝试从一个新的Eclipse安装开始,导出偏好到 .epf
文件,只需更改一个设置,再次导出,并比较文件。令我惊讶的是,尝试从最小的 .epf
文件导入设置也无法正常工作。
解决方案对我来说有效的是复制这些文件: {Eclipse workspace directory} /。metadata / .plugins / org.eclipse.core.runtime / .settings / *。prefs
/ p>
我在另一台机器上尝试了一个新的Eclipse安装,并且在复制这些文件之后,我的所有设置都被完美恢复。
I spend some time customizing the colors for syntax highlighting in Eclipse (Java, JSP, HTML, CSS, etc.) but whenever I try to export these settings via File|Export|General|Preferences and reimport them, the settings never completely get imported back. Some colors are restored and others are left unchanged, leaving me in an 'in between' state - very frustrating.
I'm using Eclipse 3.4 Ganymede, by the way.
Has anyone found a reliable way to save and restore Eclipse syntax highlighting settings?
I finally figured out how to do this.
I just wanted to mention beforehand that I did try to start with a fresh Eclipse install, export the preferences to a .epf
file, change just one single setting, export again, and compare the files. To my surprise, trying to import settings from a minimal .epf
file did not work reliably either.
The solution that worked for me was to copy these files: {Eclipse workspace directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings/*.prefs
I tried a fresh Eclipse install on another machine and after copying those files over, all my settings were restored perfectly.
这篇关于Eclipse语法高亮选项保存并恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!