Eclipse Syntax Coloring File

后端 未结 4 1466
孤独总比滥情好
孤独总比滥情好 2021-02-02 11:50

After setting up the Java syntax highlighting for my workspace, I want to backup this file to, lets say, give it to my friends.

Can you tell me in which file Eclipse sto

4条回答
  •  死守一世寂寞
    2021-02-02 12:30

    Sometimes simply import/export would not be enough, so you may need a list of .pref files where the syntax coloring settings are stored. What I have here is not complete and I just list what I use and I hope it helps.

    (I process .java, .jsp, .xml, js and .properties files.)

    You can find them by searching .pref files in your workspace, and open each one to see which contains color code. Remember to adjust your searching options to look into subfolders.

    org.eclipse.ui.editors.prefs
    org.eclipse.jdt.ui.prefs
    org.eclipse.ui.workbench.prefs
    org.eclipse.wst.xml.ui.prefs
    org.eclipse.jst.jsp.ui.prefs
    org.eclipse.wst.html.ui.prefs
    org.eclipse.wst.jsdt.ui.prefs
    org.eclipse.ant.ui.prefs
    org.eclipse.datatools.sqltools.sqleditor.prefs
    org.eclipse.debug.ui.prefs
    org.eclipse.php.ui.prefs
    com.adobe.flexide.mxml.core.prefs
    org.python.pydev.prefs
    com.adobe.flexide.as.core.prefs
    com.adobe.flexide.css.core.prefs
    org.codehaus.groovy.eclipse.ui.prefs
    org.epic.perleditor.prefs
    org.eclipse.cdt.ui.prefs
    

    You may copy them when you finish adjusting your syntax coloring settings. When needed, search .pref again to get access to their locations, and restore your settings by copying the lines with color code, in order to avoid unpredictable side effect. As I can see this is the only way, inconvenient buy effective.

提交回复
热议问题