1.windows->Preferences->
在左邊選擇General->Editor->Text Editors,右邊選擇Appearance color options ,選Background color 選擇背景顏色,取消System Default。背景配色:160,0,59
2.選Current line highlight 來改變 當前選中行 的顏色
點擊應用(Apply)后背景色就設置好了,下面說說怎么改文字顏色。
回到Preference對話框:Java->Editor->Syntax Coloring,在右側彈出選項卡
配色方案詳細following:
Annotations(注釋): 107, 147, 186
Deprecated members: 0, 0, 0 (不建議使用的成員)
Fields(字段): 128,255,0 綠色
KeyWord 'return': 255, 0, 0 紅色(關鍵字'return')
Keyword excluding 'return': 255,80, 0 深深橘色(除了關鍵字以外的return)
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 紅色