当前位置: 移动技术网 > 科技>软件教程>编程开发 > eclipse字体颜色的设置方法

eclipse字体颜色的设置方法

2014年03月08日  | 移动技术网科技  | 我要评论
eclipse字体颜色的设置方法

此时我们就希望设置一下字体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 font

eclipse背景颜色修改: 

操作界面默认颜色为白色。对于我们长期使用电脑编程的人来说,白色很刺激我们的眼睛,所以我经常会改变workspace的背景色,使眼睛舒服一些。设置方法如下: 
1、打开window->preference,弹出preference面板 
2、展开general标签,选中editors选项,展开。 
3、选中 test editors,右边出现test editors面板。 面板中有这样一个选项:appearance color options; 其中是各种板块颜色的设置,其中有一项是background color,根据自己的喜好选择颜色。 
4、 选中background color,勾掉system default,点击'color',弹出颜色选择面板,选择喜好的颜色,单击确定。 
5、返回test editors,单击apply即可。展开test editors,还有其他选项,比如对错误提示的颜色样式,如果你对此感兴趣也可尝试更改一下。 

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

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

改变背景颜色
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中的汉字横着显示怎么解决

同一种字体有两种显示方式,比如fixedsys excelsior 3.01和@fixedsys excelsior 3.01,前一种汉字是竖着显示,后一种汉字是横着显示。preferences->java->editor->syntax coloring中点击右上角的colors and fonts,在弹出的对话框中找到java->java edit text font,双击该字体,从中选择前面不带@的字体即可解决汉字横着的问题。

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

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网