VSCode Cheatsheet - VS Code Shortcut Reference

All essential VSCode commands organized by use case, with 44+ entries you can copy and run directly. Find the right command fast when you need it.

Dev Tools·44 commands·Last updated 2026-07-21
Back to Dev Tools

General 7

Cmd+Shift+P
Open命令面板(macOS)
Ctrl+Shift+P
Open命令面板(Win/Linux)
Cmd+P
快速OpenFile
Cmd+,
OpenSet
Cmd+Shift+X
Open扩展面板
Cmd+B
切换侧边栏
Cmd+`
切换集成终端

Editing 9

Option+↑/↓
上下Movecurrent line
Shift+Option+↑/↓
向上/下Copycurrent line
Cmd+L
选中current line
Cmd+D
选中下一个相同内容
Cmd+Shift+L
选中所有相同内容
Option+Click
添加多cursor
Cmd+/
切换行注释
Cmd+Option+[
折叠代码块
Cmd+Option+]
展开代码块

Refactoring & Debug 8

F2
Rename符号
Cmd+Shift+R
重构菜单
F5
StartDebug
F9
切换断点
F10
单步Jump过
F11
单步Enter
Cmd+Shift+F
全局Search
Cmd+Shift+H
全局Replace

Git Integration 5

Cmd+Shift+G
Open源代码管理面板
Cmd+Enter
在消息框中提交更改
Ctrl+Shift+G B
Show更改的Filelist
Cmd+Shift+P > Git: Pull
拉取远程更改
Cmd+Shift+P > Git: Push
推送本地提交

Views 4

Cmd+Shift+E
聚焦资源管理器
Cmd+Shift+D
OpenDebug视图
Cmd+J
切换底部面板
Cmd+K Z
禅模式(全屏无干扰)

Config Files 4

settings.json
User&工作区Set
launch.json
DebugStartConfigure
tasks.json
Build&taskConfigure
keybindings.json
自定义快捷键绑定

💡 Tips

  • Cmd+D 连续按可以依次选中所有相同文本,批量修改比正则更直观。
  • Option+Click 多光标模式适合在多处同时输入,比如给多行加前缀。
  • 自定义快捷键:Cmd+K Cmd+S 打开键盘快捷方式可视化编辑。

Official References

Commands are compiled from the official docs below. Click to verify the latest usage.

Maintained by LaoHand

Publicly updated on Jul 21, 2026, continuously proofread against official docs.

Found an error? Report it

Wrong command or description? Open an issue to help us fix it.

Found an error? Report it