快捷键需要自己去查询和设置:intellij idea-preferences-keymap-搜快捷键功能的名字
- 万用键:option+enter(智能提示,修复)
- search everywhere:双击shift(搜索文件)
- 查看定义:declaration(command+左键,看类或方法的定义)
- 高级查找:find in path(关键词搜索,在某模块/项目/文件等,范围可自选),command+shift+f
- 快速生成:generate(生成构造方法,get/set等),command+n
- 格式化:reformat code(格式化代码),option+command+l
- 优化导入语句:optimize imports(清理class头部多余导入的包,import xxxx;),option+enter
- 导航:navigate-back/forward(结合查看定义使用,回退和前进),option+command+向左/向右
- 谁调用了这个方法:call hierarchy,control+option+h
- 查看接口的所有实现类:implementation,option+command+b
- 文件大纲:file structure,列出类或者接口所有的方法,command+f12
- 下一处错误:next highlighted error ,跳转到该文件下一处报红的地方,f2
- 高级重命名:rename,文件中多处同时修改,shift+f6
- 调试器快捷键:f5/f6/f7/f8
- 补足标点,并换行:command+shift+回车
- 方法参数提示:command+p
- 复制一行:command+d
- 大小写转换:command+shift+U
- 列编辑:command+shift+小键盘的*
- 单行注释:command+/ ,取消注释,再来一次就可以了
- 多行注释:command+shift+/
待续。。。