Visual Studio Code Keyboard Shortcuts for Windows & macOS
Windows & macOS
VS Code is a lightweight, open-source code editor for developers. These keyboard shortcuts let you navigate files, refactor code, and debug more efficiently.
Action | Windows Shortcut | macOS Shortcut |
---|---|---|
Open File | Ctrl + P | Command + P |
Command Palette | Ctrl + Shift + P | Command + Shift + P |
Toggle Terminal | Ctrl + ` | Control + ` |
Split Editor | Ctrl + \ | Command + \ |
Toggle Sidebar | Ctrl + B | Command + B |
Comment Line | Ctrl + / | Command + / |
Format Document | Shift + Alt + F | Shift + Option + F |
Go to Definition | F12 | F12 |
Rename Symbol | F2 | F2 |
Open Settings | Ctrl + , | Command + , |