编辑窗口背景色设置:
菜单栏 Window——》Preferences——》General加号——》Editors——》右击Text Editors——》窗口选Backgroud color,右边点掉System Default按钮,点Color右边的颜色框,选择颜色OK
推荐背景颜色: RGB 199 237 204,文档由刺眼白底黑字变成柔和的豆沙绿,这个色调是眼科专家配置的,长时间使用会很有效的缓解眼睛疲劳保护眼睛。
选中代码行背景颜色设置:
windows->Preferences->General->Editor->Text Editors,右边选择Appearance color options 方框:
选Current line highlight 来改变当前选中行的颜色,推荐颜色:RGU:64 128 128
配色方案详细following:
Eclipse字体大小调整:
窗口(Window)--首选项(Preferences--常规(General--外观(Appearence)--颜色与字体(Colors And Fonts),在右边的对话框里选择Java - -Java Editor Text Font,点击出现的修改(Change)按钮,可以设置显示在在主窗体中程序的字体大小,设置完之后点击右下角的应用(Apply),最后点击确定(OK)即可。
xml的字体大小调整:
window--preferences--General--appearance--colors and fonts--Basic-- "Text font "
然后点change,可以设置字体的大小
eclipse 改变背景颜色
一个让coder看着舒服的背景配色看上去会十分舒服,会让Coding过程变得惬意,让编写效率提升不少。而Eclipse默认配色实在丑到哭。在这样的配色中,最难分辨的就是局部变量和类型的私有字段(其他好歹可以通过大小写规则来判断,如果代码编写够规范的话)。而且过于单调的颜色,不容易刺激视觉神经乃至中枢神经,会增加疲劳感,带来困意。
所以,一个优雅的coder必须要对Eclipse的代码配色进行更改:
私人配色:
方案一:豆绿色背景
字体颜色
window->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(不建议使用的成员): 128 ,255 ,255
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 红色
————————————————
版权声明:本文为优快云博主「Terence Jing」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.youkuaiyun.com/优快云_Terence/article/details/62217277