Eclipse syntax highlighting preferences save and restore

后端 未结 10 1861
甜味超标
甜味超标 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 15:57

    I would export the preference before modifying the color, and then after.

    That way, you would be able to isolate the specific rules of an eclipse preference file into one smaller file and:

    • check if some colors not restored are indeed represented by a rule
    • the import of a smaller preference has any effect on the previously unchanged settings.

    That kind of strategy can be further refined into several small settings files (one for Java, one for JSP, HTML, CSS, ...), in order to better analyzing the potential side-effects when re-importing those settings.

提交回复
热议问题