Eclipse和IDEA常⽤快捷键对⽐记忆Eclipse和IDEA常⽤快捷键对⽐记忆
功能Eclipse IDEA
关闭Window Ctrl+W Ctrl+F4
标准换⾏打印System.out.println()syso sout
main⽅法main psvm
idea debug
删除⾏Ctrl+D Ctrl+Y
恢复或反撤销Ctrl+Y Ctrl+Shift+Z
查看⽂档注释⿏标悬停Ctrl+Q
悬停设置:Editor-General-Other-Show Quick documentation on mouse move
跳⾄指定⾏Ctrl+L Ctrl+G
⽂本搜索替换Ctrl+F Ctrl+R
Ctrl+Shift+R项⽬中多⽂件的⽂本替换
重命名变量名或⽅法名Alt+Shift+R Shift+F6
⽣成本地变量Ctrl+2,L Alt+Enter,Introduce Local Variable 格式化Ctrl+Shift+F Ctrl+Alt+L
优化Imports Ctrl+Shift+O Ctrl+Alt+O
⾃动补全提⽰Alt+/Ctrl+Shift+Space
查类Ctrl+Shift+T Ctrl+N DoubleShift,Classes
查⽂件Ctrl+Shift+R Ctrl+Shift+N DoubleShift,Files
搜索⽂件内容Ctrl+H Ctrl+Shift+F
查看类/⽅法调⽤层级或引⽤Ctrl+Shift+G
Ctrl+Alt+H
Ctrl+Alt+H
查看类/⽅法实现Ctrl+T Ctrl+Alt+B ⽣成Getter/Setter/构造器等Alt+Shift+S Alt+Insert
上下移动代码⾏Alt+↑,↓Ctrl+Shift+↑,↓ Alt+Shift+↑,↓
⼤⼩写切换Ctrl+Shift+X,Y Ctrl+Shift+U
Outline/FileStructure Alt+Shift+Q,O
Window-ShowView-
Outline
Alt+7
Debug单步StepOver F6F8
Debug进⼊⽅法StepInto F5F7
Debug步出⽅法
StepReturn/StepOut
F7Shift+F8 Debug继续到下⼀断点Resume F8F9
Debug查看语句执⾏结果选中后Ctrl+Shift+I选中后悬停
功能Eclipse IDEA
IDEA好⽤的快捷键
功能键
重新编译单个⽂件Ctrl+Shift+F9运⾏主类Ctrl+Shift+F10