【汇总】VS Code Windows 快捷键 (三列中英文对照)-来源官方-翻译小白AI


Visual Studio Code Keyboard Shortcuts for Windows
VS Code Windows 快捷键 (三列对照)

1. General / 通用操作

Shortcut / 按键English Command / 英文描述Chinese Command / 中文描述
Ctrl+Shift+P, F1 Show Command Palette 显示命令面板
Ctrl+N New window / instance 新建窗口/实例
Ctrl+Shift+N New window / Go to file... 新建窗口/快速打开文件
Ctrl+Shift+W Close window / instance 关闭窗口/实例
Ctrl+, User Settings 用户设置
Ctrl+K Ctrl+S Keyboard Shortcuts 键盘快捷键设置

2. Basic Editing / 基本编辑

Shortcut / 按键English Command / 英文描述Chinese Command / 中文描述
Ctrl+X Cut line (empty selection) 剪切行(空选时)
Ctrl+C Copy line (empty selection) 复制行(空选时)
Alt+↑ / Alt+↓ Move line up/down 上下移动行
Shift+Alt+↑ / Shift+Alt+↓ Copy line up/down 上下复制行
Ctrl+Shift+K Delete line 删除行
Ctrl+Enter Insert line below 在下方插入行
Ctrl+Shift+Enter Insert line above 在上方插入行
Ctrl+[ / Ctrl+] Indent/outdent line 减少/增加缩进
Home / End Go to beginning/end of line 跳至行首/行尾
Ctrl+Home / Ctrl+End Go to beginning/end of file 跳至文件开头/结尾
Ctrl+Shift+[ / Ctrl+Shift+] Fold (collapse) / unfold (expand) region 折叠/展开代码块
Ctrl+/ Toggle line comment 切换行注释
Shift+Alt+A Toggle block comment 切换块注释

3. Search and Replace / 搜索与替换

Shortcut / 按键English Command / 英文描述Chinese Command / 中文描述
Ctrl+F Find 查找
Ctrl+H Replace 替换
F3 / Shift+F3 Find next/previous of Find match 查找下一个/上一个匹配项
Alt+Enter Select all occurrences of Find match 选择所有匹配项
Ctrl+D Add selection to next Find match 添加选区到下一个匹配项
Alt+C / Alt+R / Alt+W Toggle case sensitive / regex / whole word 切换大小写敏感/正则表达式/全字匹配

4. Multi-cursor and Selection / 多光标与选择

Shortcut / 按键English Command / 英文描述Chinese Command / 中文描述
Alt+Click Insert cursor 在点击处插入光标
Ctrl+Alt+↑ / Ctrl+Alt+↓ Insert cursor above / below 在上方/下方插入光标
Shift+Alt+I Insert cursor at end of each line selected 在选中行尾插入光标
Ctrl+Shift+L Select all occurrences of current selection 选择当前选中内容的所有匹配项
Shift+Alt+→ / Shift+Alt+← Expand / shrink selection 扩展/缩小选区
Shift+Alt+Drag mouse Column (box) selection 列(方框)选择

5. File Management / 文件管理

Shortcut / 按键English Command / 英文描述Chinese Command / 中文描述
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 切换到上一个标签页

6. Display / 显示

Shortcut / 按键English Command / 英文描述Chinese Command / 中文描述
F11 Toggle full screen 切换全屏模式
Shift+Alt+0 Toggle editor layout (horizontal/vertical) 切换编辑器布局(水平/垂直)
Ctrl++ / Ctrl+- Zoom in/out 放大/缩小
Ctrl+B Toggle Sidebar visibility 切换侧边栏显示
Ctrl+Shift+E Show Explorer / Toggle focus 显示资源管理器/切换焦点
Ctrl+Shift+G Show Source Control 显示源代码管理
Ctrl+Shift+D Show Debug 显示调试面板
Ctrl+Shift+X Show Extensions 显示扩展面板

7. Debug / 调试

Shortcut / 按键English Command / 英文描述Chinese Command / 中文描述
F9 Toggle breakpoint 切换断点
F5 Start/Continue 开始/继续调试
Shift+F5 Stop 停止调试
F11 / Shift+F11 Step into / out 单步进入/跳出
F10 Step over 单步跳过

8. Integrated Terminal / 集成终端

Shortcut / 按键English Command / 英文描述Chinese Command / 中文描述
Ctrl+` Show integrated terminal 显示集成终端
Ctrl+Shift+` Create new terminal 创建新终端
Ctrl+C / Ctrl+V Copy / Paste into terminal 复制/粘贴到终端

 

来源说明:

Visual Studio Code tips and tricks

keyboard-shortcuts-macos.pdf

keyboard-shortcuts-linux.pdf

keyboard-shortcuts-windows.pdf

https://code.visualstudio.com/assets/docs/getstarted/tips-and-tricks/KeyboardReferenceSheet.png

https://www.wenxiaobai.com/ (翻译图片,生成中英文html格式文件,按键、英文、中文各占一列)

 

posted @ 2025-11-12 10:15  悟透  阅读(10)  评论(0)    收藏  举报