Is there a simple, consistent way to change the color scheme of Eclipse editors?

前端 未结 5 724
Happy的楠姐
Happy的楠姐 2021-01-05 05:27

I\'m going crazy trying to get all of the editors to look similarly. It looks like there\'s a different color editor option for each file type/code type, which means it take

相关标签:
5条回答
  • 2021-01-05 05:48

    It sounds like there isn't currently a good way of doing this because of the way Eclipse was designed: there's not a good, flexible, inheritable syntax highlight framework to bring consistency to everything.

    While you can export & import preferences as Wijnand Warren's answer states, and that does work... kind of... actually going in and editing the preference files to make sure that you're only sharing color information is probably a huge pain in the butt, so not simple. Also, that still leaves the problem of finding someone who has put in the effort & time to create the syntax coloring in the first place.

    Also, every time you add a new type of structured text editor (new language per year anyone?), you'll have to go back into settings & edit the highlighting for that language as well.

    I have no experience developing for the Eclipse platform, but if someone with more experience would be willing to point me in the right direction (documentation, explanation of how things fit together, etc.), please let me know.

    0 讨论(0)
  • 2021-01-05 05:50

    Install the color theme plugin from http://eclipse-color-theme.github.com/update. It already consists of some good themes that you can use.

    Then just go to menu WindowPreferencesGeneralAppearance → color theme to apply the themes.

    You can download more themes from http://www.eclipsecolorthemes.org.

    0 讨论(0)
  • 2021-01-05 05:56

    I've been looking for this too and after a bit of research found a workable solution. This is based on the FDT editor for Eclipse, but I'm sure you could apply the same logic to other editors.

    My blog post: Howto create a color-scheme for FDT

    Hope this helps!

    0 讨论(0)
  • 2021-01-05 06:02

    I'm working on an Eclipse plugin for this:

    http://marketplace.eclipse.org/content/eclipse-color-theme

    It's by no means complete, but it does work quite well already.

    0 讨论(0)
  • 2021-01-05 06:06

    I've searched high and low for an answer to the same question and have all but given up. It is not easy to change the color scheme because, as you said, each language has its own options buried deep in the Configuration tree.

    I've read a little about why 'themes' aren't available, and it has something to do with the complexity of Eclipse's XML storage technique. I'm sorry that I can't provide a real solid answer, but I just wanted to let you know that you're not alone in your frustrations.

    0 讨论(0)
提交回复
热议问题