VScode 基础编辑 快捷键
按 Press | 功能 Function |
---|---|
Ctrl+x | 剪切行(空选定) Cut line (empty selection) |
Ctrl+c | 复制行(空选定)Copy line (empty selection) |
Ctrl+p | 搜索文件 |
Ctrl+b | 关闭左侧索引栏 |
Ctrl+f | 文件内查找字符[enter]下一个 |
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+↑ / ↓ | 向上/向下滚动行 Scroll line up/down |
Alt+PgUp / PgDown | 向上/向下滚动页面 Scroll page up/down |
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 |