Eclipse syntax highlighting preferences save and restore(Eclipse 语法高亮首选项保存和恢复)
问题描述
我花了一些时间在 Eclipse(Java、JSP、HTML、CSS 等)中自定义语法突出显示的颜色,但每当我尝试通过文件|导出|常规|首选项导出这些设置并重新导入它们时,这些设置永远不会完全得到进口回来.有些颜色恢复了,有些颜色保持不变,让我处于介于两者之间"的状态——非常令人沮丧.
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.
顺便说一下,我正在使用 Eclipse 3.4 Ganymede.
I'm using Eclipse 3.4 Ganymede, by the way.
有没有人找到一种可靠的方法来保存和恢复 Eclipse 语法高亮设置?
Has anyone found a reliable way to save and restore Eclipse syntax highlighting settings?
推荐答案
我终于想通了.
我只是想提前提一下,我确实尝试从全新的 Eclipse 安装开始,将首选项导出到 .epf
文件,只更改一个设置,再次导出,然后比较文件.令我惊讶的是,尝试从最小的 .epf
文件导入设置也不能可靠地工作.
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.
对我有用的解决方案是复制这些文件:{Eclipse 工作区目录}/.metadata/.plugins/org.eclipse.core.runtime/.settings/*.prefs
The solution that worked for me was to copy these files: {Eclipse workspace directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings/*.prefs
我在另一台机器上尝试了全新的 Eclipse 安装,将这些文件复制过来后,我的所有设置都已完美恢复.
I tried a fresh Eclipse install on another machine and after copying those files over, all my settings were restored perfectly.
这篇关于Eclipse 语法高亮首选项保存和恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Eclipse 语法高亮首选项保存和恢复
基础教程推荐
- Java:带有char数组的println给出乱码 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- 降序排序:Java Map 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01