eclipse中各类颜色和背景的设置

由于eclipse字体颜色默认的咱们看久了会以为有点眼睛不舒服,特别是在晚上,太亮了,我以为eclipse的白色背景太刺眼了看着不舒服。java

此时咱们就但愿设置一下字体eclipse字体颜色,让他像其它编辑器同样的,有不一样的风格,白天用一上用一种。编程

1.eclipse 背景色设置:
Window->Preferences->General->Editors->Text Editors->Backgroud colors
取消System default 设置成:RGB(204,232,207).

2.字体大小设置:

java 字体:
菜单windows>Prefenrence>General Appearance>Colors and Fonts 在右边的菜单中选Java> Java Editor Text Font
相似的eclipse的其余语言的也是这样设置,只是把JAVA替换成相应的便可。

xml字体: Colors and Fonts 里找 Basic

console字体:Colrs and Fonts 里找 Debug->Console fontwindows

Eclipse背景颜色修改: 

操做界面默认颜色为白色。对于咱们长期使用电脑编程的人来讲,白色很刺激咱们的眼睛,因此我常常会改变workspace的背景色,使眼睛舒服一些。设置方法以下: 
一、打开window->Preference,弹出Preference面板 
二、展开General标签,选中Editors选项,展开。 
三、选中 Test Editors,右边出现Test Editors面板。 面板中有这样一个选项:Appearance color options; 其中是各类板块颜色的设置,其中有一项是background color,根据本身的喜爱选择颜色。 
四、 选中background color,勾掉System Default,点击'color',弹出颜色选择面板,选择喜爱的颜色,单击肯定。 
五、返回Test Editors,单击Apply便可。展开Test Editors,还有其余选项,好比对错误提示的颜色样式,若是你对此感兴趣也可尝试更改一下。 

背景颜色向你推荐:色调:85。饱和度:1 2 3。亮度:2 0 5 app

文档都再也不是刺眼的白底黑字,而是很是柔和的豆沙绿色,这个色调是眼科专家配置的,长时间使用会颇有效的缓解眼睛疲劳保护眼睛。 eclipse

改变背景颜色
windows->Preferences->General->Editor->Text Editors
右边选择Appearance color options 
选Background color 选择背景颜色
选Current line highlight 来改变 当前选中行 的颜色编辑器

配色方案详细following: 学习



Eclipse字体大小调整: 
窗口(Window)-首选项(Preferences)-常规(General)-外观(Appearence)-颜色与字体(Colors And Fonts),在右边的对话框里选择Java - Java Editor Text Font,点击出现的修改(Change)按钮,能够设置显示在在主窗体中程序的字体大小,设置完以后点击右下角的应用(Apply),最后点击肯定(OK)便可。 字体

eclipse中的汉字横着显示怎么解决spa

同一种字体有两种显示方式,好比Fixedsys Excelsior 3.01和@Fixedsys Excelsior 3.01,前一种汉字是竖着显示,后一种汉字是横着显示。preferences->java->Editor->Syntax Coloring中点击右上角的Colors and Fonts,在弹出的对话框中找到java->Java Edit Text Font,双击该字体,从中选择前面不带@的字体便可解决汉字横着的问题。3d

xml的字体大小调整: 
window--preferences--General--appearance--colors and fonts--Basic-- "Text font "  

而后点change,能够设置字体的大小

eclipse 改变颜色,背景

一款看上去十分舒服的代码配色,会让Coding过程变得惬意,让编写效率提高很多。而Eclipse默认的代码配色实在丑陋,除了关键字为褐色加粗、字符串为蓝色外,其他颜色均为黑色。在这样的配色中,最难分辨的就是局部变量和类型的私有字段(其余好歹能够经过大小写规则来判断,若是代码编写够规范的话)。并且过于单调的颜色,不容易刺激视觉神经乃至中枢神经,会增长疲劳感,带来困意。

为了改变这一现状,咱们必须对Eclipse的代码配色进行更改。

个人代码颜色



改变字体颜色
windows->Preferences->Java->Editor->Syntax Coloring
右边选择Java 而后能够自由选择颜色了

Annotations(注释): 107, 147, 186  浅蓝色
Deprecated members(不建议使用的成员): 0, 0, 0  
Fields(字段): 128, 0, 128  紫色
KeyWord 'return'(关键字'return'): 255, 0, 0   红色
Keyword excluding 'return'(除了关键字之外的return): 255, 128 ,0  橙色
Local variable declarations(局部变量声明): 128, 128, 128   灰色
Method declarations(方法声明): 255, 128, 64    橙色
Method(方法): 0, 48, 96 暗浅蓝色
Operators and brackets(运算符与方括号): 255, 128, 0  橙色
Others(其余): 96 153, 0   深绿色
Static fields(静态字段): 33, 0, 189  深蓝色
Static Method invocations(静态方法调用): 77, 166 255  天蓝色 
Strings(字符串): 132, 26, 238   中天蓝色
Type variables(类型变量): 128, 0, 25   红罗色

学习从如今开始

第二方案

改变背景颜色(黑底背景的设置)
windows->Preferences->General->Editor->Text Editors
右边选择Appearance color options 
选Background color 选择背景颜色
选Current line highlight 来改变 当前选中行 的颜色

配色方案详细following: 
Annotations(注释): 107, 147, 186 
Deprecated members(不建议使用的成员): 0, 0, 0 
Fields(字段):128,255,0 绿色
KeyWord 'return'(关键字'return'): 255, 0, 0  红色
Keyword excluding 'return'(除了关键字之外的return): 255,80, 0  深深橘色
Local variable declarations(局部变量声明): 70,140,179  深蓝色
Method declarations(方法声明): 247,197,39  淡橘色
Method(方法): 241,196,54  深淡橘色
Operators and brackets(运算符与方括号): 255, 128, 0   深橘色
Others(其余): 126, 202, 0  淡绿色
Static fields(静态字段): 128,255,0 绿色
Static Method invocations(静态方法调用): 77, 166 255  
Strings(字符串):  89,196,196  墨蓝色
Type variables(类型变量): 222, 0, 25  红色

eclipse 改变字体大小和颜色,背景改变字体windows->Preferences->General->Appearance->Colors and Fonts右边选择Java ->Java Editor Text Font 选择喜欢的字体改变字体颜色windows->Preferences->Java->Editor->Syntax Coloring右边选择Java 而后能够自由选择颜色了改变背景颜色windows->Preferences->General->Editor->Text Editors右边选择Appearance color options 选Background color 选择背景颜色选Current line highlight 来改变 当前选中行 的颜色配色方案详细following: Annotations(注释): 107, 147, 186 Deprecated members(不建议使用的成员): 0, 0, 0 Fields(字段): 128, 0, 128 KeyWord 'return'(关键字'return'): 255, 0, 0 Keyword excluding 'return'(除了关键字之外的return): 255, 0, 128 Local variable declarations(局部变量声明): 128, 128, 128 Method declarations(方法声明): 255, 128, 64 Method(方法): 74, 165, 255 Operators and brackets(运算符与方括号): 255, 128, 0 Others(其余): 126, 202, 0 Static fields(静态字段): 33, 0, 189 Static Method invocations(静态方法调用): 77, 166 255 Strings(字符串): 132, 26, 238 Type variables(类型变量): 128, 0, 25

相关文章
相关标签/搜索