1. 程式人生 > >idea中字型顏色設定成類似eclipse的方案

idea中字型顏色設定成類似eclipse的方案

由於本人一開始使用的是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