是否有一种简单,一致的方式来更改Eclipse编辑器的颜色方案?

时间:2023-01-18 22:58:00

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 takes FOREVER to customize the view.

我疯了,试图让所有的编辑看起来都像。看起来每个文件类型/代码类型都有不同的颜色编辑器选项,这意味着它需要FOREVER来自定义视图。

Add to that: each code/file type color option seems to honor the default set in the generic options only if it feels like it (seems buggy).

除此之外:每个代码/文件类型颜色选项似乎只有在它感觉像(似乎有缺陷)时才会遵循通用选项中的默认设置。

I'm currently using Eclipse 3.4.1 (Ganymede).

我目前正在使用Eclipse 3.4.1(Ganymede)。

Is there a version that is less buggy or is there a more consistent way to change the text colors?

是否有一个版本较少的错误或是否有更一致的方式来更改文本颜色?

Barring that, has anyone gotten a Zenburn-like color scheme in Eclipse that would be willing to share?

除此之外,是否有人在Eclipse中获得了类似Zenburn的配色方案,愿意分享?

5 个解决方案

#1


I'm working on an Eclipse plugin for this:

我正在为这个Eclipse插件工作:

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

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

它绝不是完整的,但它确实已经很好用了。

#2


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.

听起来,由于Eclipse的设计方式,目前还没有一种很好的方法:没有一个好的,灵活的,可继承的语法高亮框架来为一切事物带来一致性。

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.

虽然您可以导出和导入首选项作为Wijnand Warren的回答状态,并且确实有效...实际上进入并编辑首选项文件以确保您只共享颜色信息可能是一个巨大的痛苦屁股,所以不简单。此外,这仍然存在找到一个已经付出努力和时间来创建语法着色的人的问题。

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.

我没有为Eclipse平台开发的经验,但如果有更多经验的人愿意指出我正确的方向(文档,事情如何组合在一起的解释等),请告诉我。

#3


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.

我已经阅读了一些关于为什么'主题'不可用的内容,并且它与Eclipse的XML存储技术的复杂性有关。对不起,我无法提供真正可靠的答案,但我只是想让你知道你并不孤单。

#4


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.

我一直在寻找这个,经过一些研究后发现了一个可行的解决方案。这是基于Eclipse的FDT编辑器,但我确信您可以将相同的逻辑应用于其他编辑器。

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

我的博文:如何为FDT创建颜色方案

Hope this helps!

希望这可以帮助!

#5


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

从http://eclipse-color-theme.github.com/update安装颜色主题插件。它已经包含了一些你可以使用的好主题。

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

然后只需进入菜单窗口→首选项→常规→外观→颜色主题即可应用主题。

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

您可以从http://www.eclipsecolorthemes.org下载更多主题。

#1


I'm working on an Eclipse plugin for this:

我正在为这个Eclipse插件工作:

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

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

它绝不是完整的,但它确实已经很好用了。

#2


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.

听起来,由于Eclipse的设计方式,目前还没有一种很好的方法:没有一个好的,灵活的,可继承的语法高亮框架来为一切事物带来一致性。

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.

虽然您可以导出和导入首选项作为Wijnand Warren的回答状态,并且确实有效...实际上进入并编辑首选项文件以确保您只共享颜色信息可能是一个巨大的痛苦屁股,所以不简单。此外,这仍然存在找到一个已经付出努力和时间来创建语法着色的人的问题。

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.

我没有为Eclipse平台开发的经验,但如果有更多经验的人愿意指出我正确的方向(文档,事情如何组合在一起的解释等),请告诉我。

#3


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.

我已经阅读了一些关于为什么'主题'不可用的内容,并且它与Eclipse的XML存储技术的复杂性有关。对不起,我无法提供真正可靠的答案,但我只是想让你知道你并不孤单。

#4


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.

我一直在寻找这个,经过一些研究后发现了一个可行的解决方案。这是基于Eclipse的FDT编辑器,但我确信您可以将相同的逻辑应用于其他编辑器。

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

我的博文:如何为FDT创建颜色方案

Hope this helps!

希望这可以帮助!

#5


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

从http://eclipse-color-theme.github.com/update安装颜色主题插件。它已经包含了一些你可以使用的好主题。

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

然后只需进入菜单窗口→首选项→常规→外观→颜色主题即可应用主题。

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

您可以从http://www.eclipsecolorthemes.org下载更多主题。