command + option + L
: 代码格式化command + option + T
: 使用if/else、while
包裹代码control + D
: 调试 Debugcontrol + R
: 运行 Runcontrol + enter
: 生成构造函数command + N
: 生成类的get/set
方法control + O
: 重写父类函数control + I
: 实现接口(与重写父类函数略有不同,可以认为重写父类函数包括实现接口)command + shift + F
: 全局查找command + control + F
: 全屏control + H
: 展示方法的依赖关系fori
: 快速生成循环体100.for
: 快速生成for
循环list.for/list.fori/list.forr
: 快速生成list
的遍历
插件
- One Dark Theme
- Maven Helper
- Tabnine: 代码补全插件
- Rainbow Brackets: 彩虹括号
- Key Promoter X: 快捷键提醒