1.自動導(dǎo)包
File -->Setting-->Editor-->General-->Auto Import ,勾選以下兩項:

勾選第一項會自動導(dǎo)包,勾選第二項會自動刪除無用的包。
2.設(shè)置代碼模版注釋
File -->Setting-->Editor-->File and Code Templates-->Includes-->File Header,F(xiàn)ile Header設(shè)置文件頭部注釋,如圖:

代碼模版注釋設(shè)置
設(shè)置后效果如下:

3.設(shè)置LogCat顏色
File -->Setting-->Editor-->Color Scheme-->Android Logcat

Logcat信息分為好幾個級別,分別是:Assert(斷言)、Debug(調(diào)試)、Error(錯誤)、Info(信息)、Verbose(詳細(xì))、Warning(警告)。
[V]:詳細(xì)(Verbose)信息,輸出顏色為黑色 (我用白色)
[D]:調(diào)試(Debug)信息,輸出顏色是藍(lán)色 (我用藍(lán)色)
[I]:通告(Info)信息,輸出顏色為綠色 (我用綠色)
[W]:警告(Warn)信息,輸出顏色為橙色 (我用橙色)
[E]:錯誤(Error)信息,輸出顏色為紅色,(我用淡紅色)
這里錯誤信息的級別最高,其次是警告信息,然后是通知信息和調(diào)試信息,級別最低的是詳細(xì)信息。
6.[Assert],(斷言)信息,新版本加入的。(我用深紅色)
4.代碼提示不區(qū)分大小寫
File -->Setting-->Editor-->General-->Code Completion
Case sensitive completion:選擇None。

5.顯示行號
File -->Setting-->Editor-->General-->Appearance
如圖勾選 Show line numbers。