IDEA快捷键的使用
发布时间 2023-10-20 12:35:02作者: 小Y的开发笔记
IDEA快捷键的使用
1. 通用型
| 说明 |
快捷键 |
| 复制代码-copy |
ctrl + c |
| 粘贴-paste |
ctrl + v |
| 剪切-cut |
ctrl + x |
| 撤销-undo |
ctrl + z |
| 反撤销-redo |
ctrl + shift + z |
| 保存-save all |
ctrl + s |
| 全选-select all |
ctrl + a |
2. 提升开发效率
第2组:提高编写速度(上)
| 说明 |
快捷键 |
| 智能提示-edit |
alt + enter |
| 提示代码模板-insert live template |
ctrl+j |
| 使用xx块环绕-surround with ... |
ctrl+alt+t |
| 调出生成getter/setter/构造器等结构-generate ... |
alt+insert |
| 自动生成返回值变量-introduce variable ... |
ctrl+alt+v |
| 复制指定行的代码-duplicate line or selection |
ctrl+d |
| 删除指定行的代码-delete line |
ctrl+y |
| 切换到下一行代码空位-start new line |
shift + enter |
| 切换到上一行代码空位-start new line before current |
ctrl +alt+ enter |
| 说明 |
快捷键 |
| 向上移动代码-move statement up |
ctrl+shift+↑ |
| 向下移动代码-move statement down |
ctrl+shift+↓ |
| 向上移动一行-move line up |
alt+shift+↑ |
| 向下移动一行-move line down |
alt+shift+↓ |
| 方法的形参列表提醒-parameter info |
ctrl+p |
3. 提高编写速度(下)
| 说明 |
快捷键 |
| 批量修改指定的变量名、方法名、类名等-rename |
shift+f6 |
| 抽取代码重构方法-extract method ... |
ctrl+alt+m |
| 重写父类的方法-override methods ... |
ctrl+o |
| 实现接口的方法-implements methods ... |
ctrl+i |
| 选中的结构的大小写的切换-toggle case |
ctrl+shift+u |
| 批量导包-optimize imports |
ctrl+alt+o |