Eclipse - 编辑器颜色 - 一个健康的配置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/506999/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 18:36:31  来源:igfitidea点击:

Eclipse - editor colors - a healthy configuration

eclipseidecolor-scheme

提问by wishi

I use Eclipse for Java, Python, C(++) and so on. I'm accustomed to Vim and the dark color schemes. The default white background just hurts my eyes. And that's a real problem. It doesn't seem Eclipse supports any schemes? I tried a Pluginbut it doesn't seem to work for MacOS and Eclipse 3.3.2.

我将 Eclipse 用于 Java、Python、C(++) 等。我已经习惯了 Vim 和深色的配色方案。默认的白色背景只是伤害了我的眼睛。这是一个真正的问题。Eclipse 似乎不支持任何方案?我尝试了一个插件,但它似乎不适用于 MacOS 和 Eclipse 3.3.2。

Is there any better option for some color support?

有没有更好的颜色支持选择?

Thanks, wishi

谢谢,希望

采纳答案by tehvan

Please check Fonts and colors in Eclipsefor customization of Eclipse.

请检查Eclipse 中的字体和颜色以自定义 Eclipse。

回答by Thomas Ferris Nicolaisen

There are some dark color themes available in the Eclipse Color Theme plugin:

Eclipse 颜色主题插件中有一些深色主题可用:

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

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

回答by VonC

Note: Eclipse Luna (4.4, to be released in June 2014) just introduced (May 2014) a default syntax coloring for dark theme when using the Koneki project: see bug 433607, by Simon Bernard:

注意:Eclipse Luna(4.4,将于 2014 年 6 月发布)刚刚引入(2014 年 5 月)使用Koneki 项目时暗主题的默认语法着色:请参阅错误 433607,作者Simon Bernard

https://bugs.eclipse.org/bugs/attachment.cgi?id=243299

https://bugs.eclipse.org/bugs/attachment.cgi?id=243299

That illustrates how you can define your own syntax coloring theme and how you can register an extension to the dark themefor recent (4.x) Eclipse.

这说明了如何定义自己的语法着色主题以及如何 为最近的 (4.x) Eclipse注册深色主题的扩展

回答by kdgregory

Go to "Preferences" under the "Window" menu.

转到“窗口”菜单下的“首选项”。

In the dialog that pops up, select General, then Appearance, then Colors and Fonts

在弹出的对话框中,依次选择“常规”、“外观”、“颜色和字体”

Correction: for editor foreground / background colors, you need to go to the preferences dialog, then select Editors, then Text Editors

更正:对于编辑器前景色/背景色,您需要转到首选项对话框,然后选择编辑器,然后选择文本编辑器

回答by Tomas

You can also go to your source code, press the right mouse button, select an option under "Appearance color options:" and change the color using the "Color:" selector displayed.

您也可以转到源代码,按鼠标右键,在“外观颜色选项:”下选择一个选项,然后使用显示的“颜色:”选择器更改颜色。