Preface
VSCode, the full name of Visual Studio Code, is a lightweight code editor from Microsoft, free, open source and powerful. It supports syntax highlighting, smart code completion, custom hotkeys, bracket matching, code snippets, code comparison Diff, GIT and other features of almost all mainstream programming languages, supports plug-in extensions, and is designed for web development and cloud application development.了Optimized. Software cross-platform support Win, Mac and Linux
Official website https://code.visualstudio.com/
Commonly used shortcut keys
1. Window operation
文件之间切换: Ctrl+Tab
切出一个新的编辑器窗口(最多3个): Ctrl+\
切换左中右3个编辑器窗口的快捷键: Ctrl+1 Ctrl+2 Ctrl+3
2. Code editing
代码格式化: Shift+Alt+F
向上或向下移动一行: Alt+Up 或 Alt+Down
向上或向下复制一行: Shift+Alt+Up 或 Shift+Alt+Down
在当前行下方插入一行: Ctrl+Enter
在当前行上方插入一行: Ctrl+Shift+Enter
删除当前行: Ctrl+Shift+K
3. Batch operation
查找: Ctrl+F
查找文件: Ctrl+P
查找替换: Ctrl+H
多行合并: Ctrl+J
单词选择: (局部) Ctrl+D 选中你需要的单词 多次按快捷键会自动往下寻找
单词选择: (全局) Ctrl + Shift + L 选中你需要的单词
快速复制行: Alt + Shift + 下键
多行光标: 按住Ctrl + Alt,再按键盘上向上或者向下的键,可以使一列上出现多个光标
多行选中: 多行光标定位后按住Shift 左右键控制选中