Eclipse syntax highlighting preferences save and restore

后端 未结 10 1876
甜味超标
甜味超标 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

    The solution was to copy SOME - not all - of the files from {workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings/*.prefs into my other workspace.

    In particular (per the https://stackoverflow.com/questions/96981/color-themes-for-eclipse thread):

    org.eclipse.jdt.ui.prefs = Syntax Coloring    
    org.eclipse.ui.editors.prefs = Text Editors
    

    Copying other files caused things to break.

    There are a couple of notes to add:

    1. I had to copy the aforementioned pair of files several times before I got the correct syntax coloring.
    2. Be sure to close the workspace, if it's open in Eclipse, before copying the files.

    This worked with Eclipse Helios.

提交回复
热议问题