1.Eclipse字体大小调整:
窗口(Window)-首选项(Preferences)-> General)-> Appearence -> Colors And Fonts -> Java -> Java Editor Text Font -> Change :
2.Eclipse xml和jsp文件字体大小调整:
window -> preferences -> General -> appearance -> colors and fonts -> Basic -> Text font :
3.我把字体都设置为:
4.接下来设置护眼颜色:
window -> preferences -> General -> Editors -> Test Editors -> Background color
勾掉System Default,点击'color',弹出颜色选择面板,选择喜好的颜色
背景颜色向你推荐:色调:85。饱和度:1 2 3。亮度:2 0 5
文档都不再是刺眼的白底黑字,而是非常柔和的豆沙绿色,这个色调是眼科专家配置的,长时间使用会很有效的缓解眼睛疲劳保护眼睛。
5.最后,设置关键字颜色,这一步随意要不要设置,关键字颜色:
windows->Preferences->Java->Editor->Syntax Coloring
设置参数:
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 红罗色
(这里的数值都是数值 红绿蓝—RGB设置)
1、注释 Annotations : 107 147 186 浅蓝色
2、符号 Brackets : 255 128 0 橙色
3、类名 Classes : 0 80 50 加粗 深绿色
4、常量 Constant : 202 0 202 加粗 玫瑰红
5、弃用的成员 Deprecated members :123 23 43 中划线 加粗 咖啡色
6、枚举 Enums : 128 0 255 紫色
7、变量 Fields : 128 0 128 深紫色
8、return关键字 Keyword 'return' :255 0 85 红色 加粗
9、其他关键字 Keyword excluding 'return' :207 46 125 玫瑰红 加粗
10、方法定义 Method declarations :255 128 64 橙色加粗
11、方法 Methods : 0 48 96 深蓝
12、数字 Numbers :42 0 255 蓝色
13、运算符 Operators : 255 128 0橙色
14、其他 Others :78 123 0 绿色
15、静态变量 Static fields :33 0 189 蓝色 加粗
16、字符串 Strings : 132 26 138 紫色
设置好workspace配置后可以将配置保存为 *.epf 文件。
进入 File -> Export ;
选择 General -> Preferences ,下一步;
选择 Export all,在 To preference file 中输入要保存的路径和文件名;
Finish。
将 *.epf 配置文件导入workspace。
进入 File -> Export ;
选择 General -> Preferences ,下一步;
选择 Import all,在 From Preference File 中选择 *.epf 文件;
Finish。
我的workspace配置文件:eclipse_snsgou.epf