由于本人一开始使用的是eclipse,转为idea后为了习惯这个新的编辑器,所以将其字体颜色设置的与eclipse类似,以便感觉是在使用eclipse,后来就习惯这个风格了,现在做一下笔记,顺便分享给有需要的人:
设置idea中文件状态颜色路径是: Preferences -> Editor -> Color & Fonts -> File Status
idea编辑器中颜色配置,效果类似eclipse,设置路径是: file -> settings -> editor -> java :
annotaion:
annotation attribute name: 0, 0, 255, 0000FF
annotation name: 0,0,0,000000
-----------------------------------------------------------------
braces and operators:
braces: foreground bold , 0, 0, 255, 0000FF
brackets:foreground bold , 0, 0, 255, 0000FF
comma:foreground bold , 0, 0, 255, 0000FF
dot:foreground bold , 0, 0, 255, 0000FF
operator sign:foreground bold , 0, 0, 255, 0000FF
parentheses:foreground bold , 0, 0, 255, 0000FF
semicolon: foreground bold , 0, 0, 255, 0000FF
-----------------------------------------------------------------
class fields:
Constant(static final field): foreground bold italic , 102,14,122, 660E7A
instance field: foreground 0 0 255 0000FF
static field: foreground italic 0 0 192 0000C0
-----------------------------------------------------------------
classes and interfaces:
abstract class: foreground 0 0 0 000000
anonymous: class foreground 0 0 0 000000
class: foreground 0 0 0 000000
enum: foreground 128 0 64 800040
interface: foreground 0 0 0 000000
-----------------------------------------------------------------
comments:
block comment: foreground italic 30 30 30 1E1E1E
line comment: foreground bold italic 0 100 0 006400
-----------------------------------------------------------------
keyword: foreground bold 127 0 85 7F0055
-----------------------------------------------------------------
methods:
abstract method: foreground 0 0 0 000000
constructor call: foreground 0 0 0 000000
constructor declaration: foreground 0 0 0 000000
inherited method: foreground 0 0 0 000000
method call: foreground 0 0 0 000000
method declaration: foreground 0 0 0 000000
static method: foreground italic 0 0 255 0000FF
-----------------------------------------------------------------
number: foreground bold 0 0 255 0000FF
-----------------------------------------------------------------
parameters:
implicit anonymous class parameter: foreground bold 128 64 0 804000
parameter: foreground 128 64 0 804000
reassigned parameter: foreground 128 64 0 804000
type parameter: foreground bold 0 0 0 000000
-----------------------------------------------------------------
string:
escape sequence invalid: foreground bold italic 0 0 160 0000A0
escape sequence valid: foreground bold italic 0 0 160 0000A0
string text: foreground 0 0 255 0000FF
-----------------------------------------------------------------
variables:
local variable: foreground bold 106 62 62 6A3E3E
reassigned local variable: foreground bold 106 62 62 6A3E3E
-----------------------------------------------------------------
Eclipse的编辑器中默认的字体颜色:
关键字 RGB: 127 0 85 或者更深 138 32 130 #8A2082
局部变量RGB: 106 62 62 或者 154 117 115 -> #9B7C7C
行注释RGB: 63 127 95
字段: 0 0 192
局部变量 106 62 62
静态字段: 0 0 192
字符串: 0 0 192
深绿色: #006400 或者 0 100 0