快捷鍵圖示
一般快捷鍵:
1习霹、代碼格式化
? command + shift + F
2朵耕、導(dǎo)入包(一般電腦已經(jīng)自動(dòng)導(dǎo)入了包)
? command + shift + O
3、注釋
? 單行:command + /
? 多行:command + control + /
4淋叶、選擇一行代碼上下移動(dòng)
? option/alt + ↑ 或 ↓
5阎曹、刪除這一行代碼
?
? command + D
6、查看源碼
? command + 鼠標(biāo)點(diǎn)擊類/方法etc.
提高效率的快捷鍵:
1爸吮、自動(dòng)生成構(gòu)造方法
? command + option/alt + S 選擇 Generate Constructors from Superclass...
? command + option/alt + S 選擇 Generate Constructors using Fields...
2芬膝、自動(dòng)生成getter/setter方法
? command + option/alt + S 選擇 Generate Getters and Setters...
注:command + option/alt + S還有很多其他功能,自己試著去感受一下吧~
.
.