簡介
本文介紹如何修改Idea的主題的配色方案。首先,我們可以在網上找到現成的配色方案,如下兩個網址就有很多的主題:
網址1:主題清單 - ThemesMap //幾百款
網址2:http://www.riaway.com/theme.php?page=1 //幾十款
從這兩個網址上找到自己想要的主題後,下載下傳下來進行導入即可。導入方法見下邊“導入配色方案”。
導入配色方案
Configure=> Settings=> Editor=> Color Scheme=> 中間“Scheme”=> 右側齒輪“Import Scheme”=> 選擇要導入的配色方案
自定義配色方案
當然,我們可以對配色方案進行自定義。比如,我從網上下載下傳了一個配色方案“Relax Your Eyes”,它大體上符合我的需求,但有一些細節想要調整,方法如下:
Configure=> Settings=> Editor=> Color Scheme=> 中間“Scheme”
-
- 選中要導出的配色“本處是Relax Your Eyes”=> Duplicate (必須先複制)=> 此時會生成一個Relex Your Eyes(copy)
- 修改Relex Your Eyes(copy)的配色方案。修改方法見下方的“修改配色方案(細節)”
- 選擇上一步修改之後的配色(Relex Your Eyes(copy))=> 右側齒輪“Export”=> “Relax Your Eyes(my) .jar”
修改配色方案(細節)
顔色
項 | 配置方法 |
未使用方法及變量顔色 | Config=> Settings=> Editor=> Color Scheme=> General=> 中間“Errors and Warnings”=> Unused Symbol |
選中區域背景色 | Config=> Settings=> Editor=> Color Scheme=> General=>中間“Editor”=> “Selection background”=> 右側“Background” |
選中變量背景色 | Config=> Settings=> Editor=> Color Scheme=> General=> 中間“Code”=> (設定下邊的“BackGround”) Identifier under carset=> BackGround (選中變量的背景色) Identifier under carset (write) => BackGround(選中變量其他位置變量的背景色) |
括号配對背景色 | Config=> Settings=> Editor=> Color Scheme=> General=>中間“Code”=> "Matched brace"=> 右側“Background” |
背景色 | Configure=> Settings=> Editor=> Color Scheme=> General=> 中間“Text”=> Default text=> 右側“Background” |
控制台顔色 | Configure=> Settings=> Editor=> Color Scheme=> Console Colors=> ANSI colors |
字型大小
導入配色主題後:Configure=> Settings=> Editor=>Color Scheme=>Color Scheme Font=> 中間“Size”=> 我設為20
軟體字型大小:Customize=> Accessibility=> IDE font=> 我設為16
如果沒使用主題的話,這樣配置::Configure=> Settings=> Editor=> Font=> 中間“Size”
行間距
導入配色主題後:Configure=> Settings=> Editor=>Color Scheme=>Color Scheme Font=> 中間“Line spacing”
如果沒使用主題的話,這樣配置:Configure=> Settings=> Editor=> Font=> 中間“Line spacing”