command + option + L: 代碼格式化command + option + T: 使用if/else、while包裹代碼control + D: 調(diào)試 Debugcontrol + R: 運(yùn)行 Runcontrol + enter: 生成構(gòu)造函數(shù)command + N: 生成類的get/set方法control + O: 重寫父類函數(shù)control + I: 實(shí)現(xiàn)接口(與重寫父類函數(shù)略有不同,可以認(rèn)為重寫父類函數(shù)包括實(shí)現(xiàn)接口)command + shift + F: 全局查找command + control + F: 全屏control + H: 展示方法的依賴關(guān)系fori: 快速生成循環(huán)體100.for: 快速生成for循環(huán)list.for/list.fori/list.forr: 快速生成list的遍歷
插件
- One Dark Theme
- Maven Helper
- Tabnine: 代碼補(bǔ)全插件
- Rainbow Brackets: 彩虹括號
- Key Promoter X: 快捷鍵提醒