Eclipse | IDEA | |
格式化代码 | Ctrl+Shift+F |
Ctrl+Alt+L command+option+L |
自动导入所需要的包 | Ctrl+Shift+O | |
生成成员或局部变量 | Ctrl+2 |
Ctrl+Alt+F/V command+option+F/V |
可以把代码包在一个块内,例如:try/catch |
Ctrl+Alt+T command+option+T | |
查找引用处某一个类、方法或者变量的位置 | Ctrl+Alt+H |
Alt+F7 option+F7 |
全局查找 | Ctrl+H |
Ctrl+Shift+F command+Shift+F |
方法被谁引用了 | Ctrl+Shift+G | Alt+F7 |
自动代码补全 | Alt+/ |
Ctrl+J command+J |