Eclipse Syntax Coloring File

后端 未结 4 1467
孤独总比滥情好
孤独总比滥情好 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:17

    You can also create a .epf file (Eclipse preference file) with the useful prefs contained in

    [workspace]\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.ui.editors.prefs, and then import it (File > Import > General > Prefernces).
    

    Here is an example :

    
    file_export_version=3.0
    /instance/org.eclipse.jdt.ui/java_multi_line_comment=128,128,128
    /instance/org.eclipse.jdt.ui/java_single_line_comment=128,128,128
    /instance/org.eclipse.jdt.ui/java_string=255,0,0
    /instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.color=0,128,0
    /instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.enabled=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.italic=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.underline=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.field.color=0,0,255
    /instance/org.eclipse.jdt.ui/semanticHighlighting.inheritedField.color=0,0,255
    /instance/org.eclipse.jdt.ui/semanticHighlighting.inheritedField.enabled=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.inheritedField.italic=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.inheritedMethodInvocation.color=0,128,0
    /instance/org.eclipse.jdt.ui/semanticHighlighting.inheritedMethodInvocation.enabled=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.inheritedMethodInvocation.italic=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.localVariable.color=255,128,0
    /instance/org.eclipse.jdt.ui/semanticHighlighting.localVariableDeclaration.bold=false
    /instance/org.eclipse.jdt.ui/semanticHighlighting.localVariableDeclaration.color=255,128,0
    /instance/org.eclipse.jdt.ui/semanticHighlighting.localVariableDeclaration.enabled=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.method.color=0,128,0
    /instance/org.eclipse.jdt.ui/semanticHighlighting.method.enabled=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.number.color=128,0,64
    /instance/org.eclipse.jdt.ui/semanticHighlighting.number.enabled=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.parameterVariable.bold=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.parameterVariable.color=255,128,0
    /instance/org.eclipse.jdt.ui/semanticHighlighting.parameterVariable.enabled=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.staticField.bold=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.staticField.color=0,0,255
    /instance/org.eclipse.jdt.ui/semanticHighlighting.staticField.italic=false
    /instance/org.eclipse.jdt.ui/semanticHighlighting.staticFinalField.color=0,0,255
    /instance/org.eclipse.jdt.ui/semanticHighlighting.staticFinalField.italic=false
    /instance/org.eclipse.jdt.ui/semanticHighlighting.staticMethodInvocation.bold=true
    /instance/org.eclipse.jdt.ui/semanticHighlighting.staticMethodInvocation.color=0,128,0
    /instance/org.eclipse.jdt.ui/semanticHighlighting.staticMethodInvocation.italic=false
    
    
    

提交回复
热议问题