IntelliJ idea常用快捷键记录

Tab 代码补全
Ctrl + Space Basic code completion (the name of any class, method or variable)代码提示
Ctrl + B or Ctrl + Click Go to declaration
Ctrl+N   查找类
Shift + F6 重命名
command + shift + N 查找类/文件 (ctrl + shift + n for win)
ctrl + J Open JavaDoc
alt + F7 Find Usages 查找当前方法被谁引用
alt + Enter 光标所在修复建议(导入包)
Ctrl + Shift + F 全文检索
ctrl + shift + r 全文替换
Ctrl+Shift+Alt+N 查找类中的方法或变量
Ctrl + Alt + B Go to implementation(s)
Ctrl + H Type hierarchy
Alt-Insert(Code|Generate…)可以创建类里面任何字段的getter与setter方法
Ctrl-/ 与 Ctrl-Shift-/ 来注释/反注释代码行 与 代码块
command + D/X Delete line at caret (custom)
command + Y 复制行 (custom)
commond + G Go to line
ctrl + alt + L Reformat code
command + alt + O 优化导入的类和包  (ctrl + alt + O for win)
Alt+ Up/Down 在方法间快速移动定位
ctrl +Tab 切换Tab页
command + E Recent Files 最近打开文件列表
command + Alt + B/鼠标左键 查看方法实现
shift + command + ↑/↓ 上下移动选中代码
Command + F7 查询当前元素在当前文件中的引用,F3循环
alt + 左键 列选模式

取消光标任意定位:Editor → Allow placement of caret after end of line(Cancle)

猜你喜欢

转载自hugh-wang.iteye.com/blog/2227425