Eclipse syntax highlighting preferences save and restore

后端 未结 10 1877
甜味超标
甜味超标 2020-12-22 15:20

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|

10条回答
  •  醉酒成梦
    2020-12-22 16:09

    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.

提交回复
热议问题