技术/指南/IDE&Editor Shortcuts Query
Tools
各大 IDE & Editor 快捷键对照表
| 操作 | IntelliJ IDEA | Visual Studio Code | Visual Studio |
|---|---|---|---|
| 编辑 Editing | |||
| 格式化代码 Format Code | Ctrl+Shift+L |
Shift+Alt+F |
|
| 删除行 Delete Line | Ctrl+Y |
Ctrl+Shift+K |
|
| 选中行 Select Line | Ctrl+L |
||
| 复制行 Copy Line | Ctrl+C |
Ctrl+C |
|
| 剪切行 Cut Line | Ctrl+X |
Ctrl+X |
|
| 重复行 Duplicate Line | Ctrl+D |
Alt+Shift+Up/Down |
|
| 移动行 Move Line | Alt+Shift+Up/Down |
Alt+Up/Down |
|
| 换行 New Line | Shift+Enter |
Shift+Enter |
|
| 插入上行 Insert Line Above | Ctrl+Alt+Enter |
Ctrl+Shift+Enter |
|
| 注释 Comment | Ctrl+/ |
Ctrl+/ |
|
| 块注释 Block Comment | Ctrl+Shift+/ |
Ctrl+Shift+/ |
|
| 选择块 Block Selection | Ctrl+W Ctrl+Shift+W |
Alt+Shift+Right/Left |
|
| 选择相同内容 | Alt+J |
Ctrl+D |
|
| 优化导包 Optimize Imports | Ctrl+Alt+O |
||
| 代码提示 Code Assist | Ctrl+Space Ctrl+Shift+Space |
||
| 代码补全 Code Completion | Ctrl+Shift+Enter |
||
| 快速修复 Quick Fix | Alt+Enter |
||
| Quick Access | Double Shift |
||
| 参数信息 Parameter Info | Ctrl+P |
||
| 查看API文档 Quick Document | Ctrl+Q |
||
| 新建文件 New File | Ctrl+N |
||
| 激活编辑器 Active Editor | Esc |
||
| 全部小写 | |||
| 全部大写 | |||
| 导航 Navigation | |||
| 上/下一个Tab | Alt+Left/Right |
Ctrl+PgUp/PgDn |
|
| 上/下一个 | Ctrl+Alt+Left/Right |
||
| 上一处修改的地方 | Ctrl+Shift+Backspace |
||
| 跳转到行 Go To Line | Ctrl+G |
Ctrl+G |
|
| 大纲/结构 Outline/Structure | Ctrl+F12 |
||
| 查看类层级 Type Hierarchy | |||
| 查看最近文件 Recent File | Ctrl+E |
||
| 跳到文件 Go To File | |||
| 切换视图 Switch View | |||
| 重构 Refator | |||
| 重命名 Rename | Shift+F6 |
||
| 提取变量 Extract Variable | |||
| 提取方法 Extract Method | |||
| 搜索 Find | |||
| 查找 Find | Ctrl+F Ctrl+L |
Ctrl+F |
|
| 查找下一个 | |||
| 查找上一个 | |||
| 全局搜索 |
