快捷键使用
快捷键作用 | IDEA | ECLIPSE |
---|---|---|
下一行录入 | shift + enter | shift + enter |
上一行录入 | ctrl + alt + enter | shift + ctrl + enter |
批量导入 | ctrl +alt + o | ctrl + shift + o |
向下复制 | ctrl + d | ctrl + alt + 下 |
移动代码 | alt + shift+ 上/下 | alt + 上/下 |
光标到下一个方法 | alt + 上/下 | |
删除 | ctrl + y | ctrl + d |
方法参数信息(精简) | ctrl + p | |
方法参数信息(详细) | ctrl + q | |
trycatch(surround with…)代码块 | ctrl + alt + t | alt + shift + z |
getter /setter | alt + inster | alt + shift + s |
补全 | ctrl + alt + v | ctrl + 1(ctrl + shift +L) |
类名提示 | ctrl + alt + 空格 | alt + / |
show intention actions(显示意图动作)告诉你如何解决该问题 | alt + enter | alt + / |
整理代码块 | ctrl + alt + L | ctrl+ shift + f |
查找 | ctrl + f | ctrl + f |
查看指定类 | ctrl + n | ctrl + t |
双击shift | ||
查看类的继承关系 | ctrl + h | |
进入方法(跳转到方法实现类) | ctrl + alt + b | |
看继承关系,也能看实现了哪些接口 | ctrl + alt + u | |
查看类中的方法 | ctrl + F12 | ctrl + o |
翻译(插件) | ctrl + shift + y| ctrl+shift+o | |
大小写切换 | ctrl + shift + u | ctrl + shift + x|ctrl + shift + y |
跳转到上一个/下一个位置 | ctrl+ alt + 左/右 | alt + 左/右 |
跳转到方法实现类 | ctrl + 鼠标点击 | ctrl + 鼠标点击 |
热部署(仅dubug模式) | ctrl+shift+F9 | |
查看/重写类中的方法 | ctrl + o | |
转到当前行首/尾 | Home/End | Home/End |
批量重命名 | Home/End | shift + alt + r |
关闭所有工程 | shift+alt+x |
IDEA 便捷操作
操作 | 作用 |
---|---|
iter | foreach遍历 |
itco | Iterator 迭代器遍历 |
itar | 根据数组长度遍历 |
fori | for循环 |
ctrl + e | 列出操作过的文件 |
ctrl + j | 查看代码片段 |
ctrl + alt +m | 提取代码片段,在该类生成指定片段方法 |