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.
Back to Dev ToolsGeneral 7
Cmd+Shift+POpen命令面板(macOS)
Ctrl+Shift+POpen命令面板(Win/Linux)
Cmd+P快速OpenFile
Cmd+,OpenSet
Cmd+Shift+XOpen扩展面板
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
F2Rename符号
Cmd+Shift+R重构菜单
F5StartDebug
F9切换断点
F10单步Jump过
F11单步Enter
Cmd+Shift+F全局Search
Cmd+Shift+H全局Replace
Git Integration 5
Cmd+Shift+GOpen源代码管理面板
Cmd+Enter在消息框中提交更改
Ctrl+Shift+G BShow更改的Filelist
Cmd+Shift+P > Git: Pull拉取远程更改
Cmd+Shift+P > Git: Push推送本地提交
Views 4
Cmd+Shift+E聚焦资源管理器
Cmd+Shift+DOpenDebug视图
Cmd+J切换底部面板
Cmd+K Z禅模式(全屏无干扰)
Config Files 4
settings.jsonUser&工作区Set
launch.jsonDebugStartConfigure
tasks.jsonBuild&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