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

时间: 2024-08-09 02:20:39

Eclipse修改字体、颜色、编译器背景颜色等操作方法的相关文章

android:修改PagerTabStrip中的背景颜色,标题字体的样式、颜色和图标以及指示条的颜色

1.修改PagerTabStrip中的背景颜色 我们在布局中直接设置background属性即可: <android.support.v4.view.ViewPager android:id="@+id/pager" android:layout_width="fill_parent" android:layout_height="fill_parent" > <android.support.v4.view.PagerTabS

ubuntu 下 eclipse CDT代码提示框背景颜色修改

原生态的ubuntu下eclipse 代码提示框的背景颜色是黑背景,前景颜色是白的,所以看起来特别不舒服,很难辨别的清楚,所以查询了资料想修改成Windows下的样子.通过查资料所知,通过修改eclipse里面的设置是不成功的,必须得修改Ubuntu的主题来解决这个问题. 原生态的代码提示框的颜色为: 由此可以知道,这是很难看的,经过调整下,颜色背景为: 修改步骤为: 1,打开/usr/share/themes/Ambiance/gtk-2.0/gtkrc 此步骤必须要该文件的读写权限,可以通过

如何更改myecelipse、eclipse的Project Explorer的背景颜色

这个是我研究了很久发现的,因为myecelipse.eclipse本身是随着系统的颜色改变而改变的,windows系统都会随着系统改变而改变的,所以找了很多资料都没能改变它的背景色,今天发现了一个不错的方法并且成功的更改了这个操作位置的颜色,与大家分享一下,希望对大家有帮助(一个自学者的感言) 首选,myecelipse.eclipse没有更改的功能,如果您发现了,可以留言给我,我们共同探讨研究一下,我现在就说下我的方法. 加载插件Aptana到myecelipse.eclipse中,步骤: m

【软件】MyEclipse 显示行数及Eclipse修改字体

1.MyEclipse显示行数 1)按Ctrl+F10,在弹出的菜单选中Show Line Numbers即可.      2)Windows->Preferences->General -> Editors -> Text Editors -> Show Line Number 参考网址:http://www.cnblogs.com/netshuai/archive/2009/08/04/1538460.html 2.Eclipse修改字体 参考网址:http://jing

iOS中通过设置CSS改变WebView字体大小,颜色,背景颜色

因为WebView自带的属性是不可以改变字体大小颜色这些需求的,只能通过改变css样式,内置来解决.在百度上搜了半天很多不靠谱,现在给出几种解决方案如下: 1.第一种方式:在WebView的代理方法webViewDidFinishLoad中: 字体大小: [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '12

Android RadioGroup的RadioButton 选择改变字体颜色和背景颜色

RadioGroup <RadioGroup android:id="@+id/client_charge_radiogroup" android:layout_width="200dp" android:layout_height="40dp" android:layout_marginLeft="5dp" android:layout_alignParentRight="true" android

RadioGroup 的 RadioButton 选择改变字体颜色和背景颜色

RadioGroup [html] view plaincopy <RadioGroup android:id="@+id/client_charge_radiogroup" android:layout_width="200dp" android:layout_height="40dp" android:layout_marginLeft="5dp" android:layout_alignParentRight=&q

Sublime Text3自定义全部字体大小、字体类型和背景颜色

一.定义侧栏的背景颜色.字体大小和间距 Sublime Text3的Afterglow主题链接为:https://github.com/YabataDesign/afterglow-theme 1.按键:ctrl+shift+p,弹出窗口中输入pro,选择图中的PackageResourceViewer:Open Resource. 2.在新窗口输入th,选中安装的主题,我个人安装的是Theme - Afterglow,就以Theme - Afterglow主题为例,其它主题类似. 3.在下拉列

WebStom软件修改字体和桌面背景

1.修改字体 File --->Settings--->Editor---->Colors&Font---->Font  (如下图) 2.修改背景颜色 File---> Settings--->Editor----> Colors&Font--->General---->Default text(选中修改右侧的background的颜色)(如下图) 注释:若出现改不动的情况,自定义Scheme 点击Save As-- 3.去掉HTML标