Eclipse Syntax Coloring File

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

    SECOND ANSWER (also in comments below)

    Sharing Java color syntax setting is possible by working with various Eclipse preference files. See: http://srand2.blogspot.com/2009/08/eclipse-color-themes.html .

    Specifically:

    • [workspace]\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.ui.prefs
    • [workspace]\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.ui.editors.prefs

    Also, for future readers, @jonas-groger added comment below regarding http://eclipsecolorthemes.org/ as another option.

    FIRST ANSWER (didn't address color syntax)

    Using Eclipse Helios (older versions of Eclipse are similiar):

    • Window > Preferences > Java > Code Style > Formatter
    • Select your profile
    • Edit
    • Export...

    This generates an XML file of all your Java formatting settings that can be easily shared/imported.

提交回复
热议问题