Eclipse 字体和背景颜色
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/186118/
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
Eclipse fonts and background color
提问by abarax
I have been trying to change the background color of Eclipse's windows to black and customize the font colors. There doesn't seem to be a way to do this, at least not in an obvious way. I am using version 3.3.
我一直在尝试将 Eclipse 窗口的背景颜色更改为黑色并自定义字体颜色。似乎没有办法做到这一点,至少不是以明显的方式。我正在使用 3.3 版。
How do I do this or are there any plugin's that might be able to assist in doing this?
我该怎么做,或者是否有任何插件可以帮助做到这一点?
回答by Craig Angus
To change background colour
更改背景颜色
- Open menu *Windows → Preferences→ General→ Editors→ Text Editors
- Browse Appearance color options
- Select background color options, uncheck default, change to black
- Select background color options, uncheck default, change to colour of choice
- 打开菜单 *Windows →首选项→常规→编辑器→文本编辑器
- 浏览外观颜色选项
- 选择背景颜色选项,取消选中默认值,更改为黑色
- 选择背景颜色选项,取消选中默认值,更改为选择的颜色
To change text colours
更改文本颜色
- Open Java→ Editor→ Syntax Colouring
- Select element from Java
- Change colour
- List item
- 打开Java→编辑器→语法着色
- 从 Java 中选择元素
- 改变颜色
- 项目清单
To change Java editor font
更改 Java 编辑器字体
- Open menu Windows→ Preferences→ General→ Appearance→ Colors and Fonts
- Select Java→ Java Editor Text fontfrom list
- Click on change and select font
- 打开菜单Windows→首选项→常规→外观→颜色和字体
- 从列表中选择Java→ Java 编辑器文本字体
- 单击更改并选择字体
回答by electricSunny
I just came across this: Eclipse Colour Themes
我刚遇到这个:Eclipse Color Themes
Install the plugin and choose from a selection of pre-defined themes, or write your own. Just what I needed!
安装插件并从一系列预定义的主题中进行选择,或者编写您自己的主题。正是我所需要的!
回答by electricSunny
Background color of views (navigator, console, tasks etc) is set according to the desktop (system) settings. On Linux/GNome I changed System/Preferences/Appeareance to change this color.
视图(导航器、控制台、任务等)的背景颜色根据桌面(系统)设置进行设置。在 Linux/GNome 上,我更改了 System/Preferences/Appeareance 以更改此颜色。
Editor colors are set chaotically by different editors, search for backgroundin eclipse preferences to find different options. One easy way to get beautiful dark (and not only dark) themes is to install Afae plugin, and then pick theme within its preferences (twilight theme is beautiful, for example) - again, eclipse prefs, Afae group. Of course this applies only when you edit with Afae.
编辑器颜色由不同的编辑器乱设置,在eclipse首选项中搜索背景可以找到不同的选项。获得漂亮的黑暗(不仅是黑暗)主题的一种简单方法是安装Afae 插件,然后在其首选项中选择主题(例如,暮光之城主题很漂亮) - 再次,eclipse prefs,Afae 组。当然,这仅适用于使用 Afae 进行编辑的情况。
回答by Patricia Heimfarth
Under Windows → Preferences → General → Apperance you can find a dark theme.
在 Windows → 首选项 → 常规 → 外观下,您可以找到一个深色主题。
回答by cowboybkit
You can install eclipse theme plugin then select default. Please visit here: http://eclipsecolorthemes.org/?view=plugin
您可以安装 eclipse 主题插件,然后选择默认。请访问这里:http: //eclipsecolorthemes.org/?view=plugin
回答by paxdiablo
If you go to Windows, Preferences then select General, Editors, Text editors, you can set colors on that property page (and there's a link for setting MORE colors - General, Appearance, Colors and fonts).
如果您转到 Windows,首选项,然后选择常规、编辑器、文本编辑器,您可以在该属性页上设置颜色(并且有一个用于设置更多颜色的链接 - 常规、外观、颜色和字体)。
That's with an Eclipse 3.3 build anyway.
无论如何,这是使用 Eclipse 3.3 构建的。
回答by Anirudh Jadhav
The easiest way is to install the plugin is from the Eclipse Marketplace. Go to Help→Eclipse Marketplace, then search for Eclipse Color Theme and install it.
最简单的方法是从 Eclipse Marketplace 安装插件。转到帮助→Eclipse Marketplace,然后搜索Eclipse Color Theme 并安装它。
回答by Paul Wicks
On Windows or Mac, you can find this setting under the General→ Editors→ Text Editorsmenu.
在 Windows 或 Mac 上,您可以在General→ Editors→ Text Editors菜单下找到此设置。
回答by jacanterbury
... on a Mac, Preferences' is under the main 'Aptana Studio 3' menu rather than the 'Windows' menu as mentioned above.
...在 Mac 上,“首选项”位于“Aptana Studio 3”主菜单下,而不是上面提到的“Windows”菜单下。
回答by Some Guy
If you are having trouble with Eclipse 2019 and using a dark theme and setting the background and having it not change: There seems to be a recent Eclipse bug. I suggest you look hereor herefor workarounds.
如果您在使用 Eclipse 2019 时遇到问题,并且使用了深色主题并设置了背景并且没有更改:似乎有一个最近的Eclipse 错误。我建议你看看这里或这里的解决方法。