功能板块
按键 | 功能 |
---|---|
Ctrl + Shift + P,F1 | 显示命令面板 Show Command Palette |
Ctrl + P | 快速打开 Quick Open |
Ctrl + Shift + N | 新窗口/实例 New window/instance |
Ctrl + Shift + W | 关闭窗口/实例 Close window/instance |
Ctrl + F | 查找 Find |
Ctrl + H | 替换 Replace |
F3 / Shift + F3 | 查找下一个/上一个 Find next/previous |
Ctrl+N | 新文件 New File |
Ctrl+O | 打开文件... Open File... |
Ctrl+S | 保存 Save |
Ctrl+Shift+S | 另存为... Save As... |
Ctrl+K S | 全部保存 Save All |
Ctrl+F4 | 关闭 Close |
Ctrl+K Ctrl+W | 关闭所有 Close All |
Ctrl+Shift+T | 重新打开关闭的编辑器 Reopen closed editor |
Ctrl+Tab | 打开下一个 Open next |
Ctrl+Shift+Tab | 打开上一个 Open previous |
Ctrl+K P | 复制活动文件的路径 Copy path of active file |
编辑功能
Ctrl+X | 剪切行(空选定) Cut line (empty selection) |
Ctrl+C | 复制行(空选定)Copy line (empty selection) |
Alt+ ↑ / ↓ | 向上/向下移动行 Move line up/down |
Shift+Alt + ↓ / ↑ | 向上/向下复制行 Copy line up/down |
Ctrl+Shift+K | 删除行 Delete line |
Ctrl+Enter | 在下面插入行 Insert line below |
Ctrl+Shift+Enter | 在上面插入行 Insert line above |
Ctrl+Shift+\ | 跳到匹配的括号 Jump to matching bracket |
Ctrl+] / [ | 缩进/缩进行 Indent/outdent line |
Home | 转到行首 Go to beginning of line |
End | 转到行尾 Go to end of line |
Ctrl+Home | 转到文件开头 Go to beginning of file |
Ctrl+End | 转到文件末尾 Go to end of file |
Ctrl+Shift+[ | 折叠(折叠)区域 Fold (collapse) region |
Ctrl+Shift+] | 展开(未折叠)区域 Unfold (uncollapse) region |
Ctrl+K Ctrl+[ | 折叠(未折叠)所有子区域 Fold (collapse) all subregions |
Ctrl+K Ctrl+] | 展开(未折叠)所有子区域 Unfold (uncollapse) all subregions |
Ctrl+K Ctrl+0 | 折叠(折叠)所有区域 Fold (collapse) all regions |
Ctrl+K Ctrl+J | 展开(未折叠)所有区域 Unfold (uncollapse) all regions |
Ctrl+K Ctrl+C | 添加行注释 Add line comment |
Ctrl+K Ctrl+U | 删除行注释 Remove line comment |
Ctrl+/ | 切换行注释 Toggle line comment |
Shift+Alt+A | 切换块注释 Toggle block comment |
Alt+Z | 切换换行 Toggle word wrap |