Eclipse代码风格

1.代码对齐风格:project...properties...Java Code Style...Formatter...Brance

2.代码颜色风格

Windows -> Preference -> General -> Editors -> Test Editors -> background color -> 色调:85。饱和度:120。亮度:208 即可

Windows -> Preference -> Java-> Editor -> Syntax Coloring

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 紫色

改好以后如下图所示。点击Apply应用。

 

3.字体设置

转载于:https://www.cnblogs.com/xuanyuyt/p/4989546.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值