VSCode Keyboard Shortcuts
Look up any Visual Studio Code keyboard shortcut with this comprehensive reference. Toggle between Windows/Linux and macOS shortcuts, filter by category (editing, navigation, debugging, terminal, and more), and search by action or key. Over 120 shortcuts covering everything from basic editing to advanced multi-cursor selections and debugging controls.
| Action | Shortcut | |
|---|---|---|
| Show Command Palette | Cmd+Shift+P | |
| Quick Open File | Cmd+P | |
| New Window | Cmd+Shift+N | |
| Close Window | Cmd+Shift+W | |
| User Settings | Cmd+, | |
| Keyboard Shortcuts | Cmd+K Cmd+S | |
| New File | Cmd+N | |
| Save File | Cmd+S | |
| Save As | Cmd+Shift+S | |
| Save All | Cmd+Alt+S | |
| Close Editor | Cmd+W | |
| Reopen Closed Editor | Cmd+Shift+T | |
| Cut Line | Cmd+X | |
| Copy Line | Cmd+C | |
| Move Line Up | Alt+Up | |
| Move Line Down | Alt+Down | |
| Copy Line Up | Shift+Alt+Up | |
| Copy Line Down | Shift+Alt+Down | |
| Delete Line | Cmd+Shift+K | |
| Insert Line Below | Cmd+Enter | |
| Insert Line Above | Cmd+Shift+Enter | |
| Indent Line | Cmd+] | |
| Outdent Line | Cmd+[ | |
| Toggle Line Comment | Cmd+/ | |
| Toggle Block Comment | Shift+Alt+A | |
| Toggle Word Wrap | Alt+Z | |
| Format Document | Shift+Alt+F | |
| Format Selection | Cmd+K Cmd+F | |
| Undo | Cmd+Z | |
| Redo | Cmd+Shift+Z | |
| Trim Trailing Whitespace | Cmd+K Cmd+X | |
| Transform to Uppercase | Cmd+K Cmd+U | |
| Transform to Lowercase | Cmd+K Cmd+L | |
| Join Lines | Ctrl+J | |
| Go to Line | Ctrl+G | |
| Go to File | Cmd+P | |
| Go to Symbol | Cmd+Shift+O | |
| Go to Symbol in Workspace | Cmd+T | |
| Go to Definition | F12 | |
| Peek Definition | Alt+F12 | |
| Go to Implementation | Cmd+F12 | |
| Go to References | Shift+F12 | |
| Go Back | Ctrl+- | |
| Go Forward | Ctrl+Shift+- | |
| Go to Beginning of File | Cmd+Up | |
| Go to End of File | Cmd+Down | |
| Go to Beginning of Line | Cmd+Left | |
| Go to End of Line | Cmd+Right | |
| Scroll Line Up | Ctrl+Up | |
| Scroll Line Down | Ctrl+Down | |
| Go to Matching Bracket | Cmd+Shift+\ | |
| Fold Region | Cmd+Alt+[ | |
| Unfold Region | Cmd+Alt+] | |
| Fold All | Cmd+K Cmd+0 | |
| Unfold All | Cmd+K Cmd+J | |
| Next Editor | Cmd+Alt+Right | |
| Previous Editor | Cmd+Alt+Left | |
| Switch to Editor Group 1 | Cmd+1 | |
| Switch to Editor Group 2 | Cmd+2 | |
| Switch to Editor Group 3 | Cmd+3 | |
| Find | Cmd+F | |
| Replace | Cmd+Alt+F | |
| Find Next | Cmd+G | |
| Find Previous | Cmd+Shift+G | |
| Toggle Find Regex | Cmd+Alt+R | |
| Toggle Find Case Sensitive | Cmd+Alt+C | |
| Toggle Find Whole Word | Cmd+Alt+W | |
| Search Across Files | Cmd+Shift+F | |
| Replace Across Files | Cmd+Shift+H | |
| Select All Occurrences of Find Match | Alt+Enter | |
| Insert Cursor Above | Cmd+Alt+Up | |
| Insert Cursor Below | Cmd+Alt+Down | |
| Insert Cursor at End of Each Line Selected | Shift+Alt+I | |
| Select Current Line | Cmd+L | |
| Select All Occurrences of Current Word | Cmd+Shift+L | |
| Select Next Occurrence of Current Word | Cmd+D | |
| Add Cursor with Click | Alt+Click | |
| Undo Last Cursor Operation | Cmd+U | |
| Column (Box) Selection | Shift+Alt+Drag | |
| Expand Selection | Ctrl+Shift+Right | |
| Shrink Selection | Ctrl+Shift+Left | |
| Select Word | Cmd+D | |
| Trigger Suggest | Ctrl+Space | |
| Trigger Parameter Hints | Cmd+Shift+Space | |
| Quick Fix | Cmd+. | |
| Rename Symbol | F2 | |
| Show Hover | Cmd+K Cmd+I | |
| Go to Type Definition | Cmd+F12 | |
| Show Problems Panel | Cmd+Shift+M | |
| Next Error or Warning | F8 | |
| Previous Error or Warning | Shift+F8 | |
| Organize Imports | Shift+Alt+O | |
| Toggle Breakpoint | F9 | |
| Start / Continue Debugging | F5 | |
| Stop Debugging | Shift+F5 | |
| Step Over | F10 | |
| Step Into | F11 | |
| Step Out | Shift+F11 | |
| Restart Debugging | Cmd+Shift+F5 | |
| Show Debug Console | Cmd+Shift+Y | |
| Inline Breakpoint | Shift+F9 | |
| Toggle Terminal | Ctrl+` | |
| Create New Terminal | Ctrl+Shift+` | |
| Copy Selection in Terminal | Cmd+C | |
| Paste into Terminal | Cmd+V | |
| Scroll Up in Terminal | Cmd+Up | |
| Scroll Down in Terminal | Cmd+Down | |
| Kill Terminal | Cmd+Backspace | |
| Split Terminal | Cmd+\ | |
| Toggle Full Screen | Ctrl+Cmd+F | |
| Toggle Zen Mode | Cmd+K Z | |
| Zoom In | Cmd+= | |
| Zoom Out | Cmd+- | |
| Reset Zoom | Cmd+Numpad0 | |
| Toggle Sidebar | Cmd+B | |
| Show Explorer | Cmd+Shift+E | |
| Show Search | Cmd+Shift+F | |
| Show Source Control | Ctrl+Shift+G | |
| Show Debug | Cmd+Shift+D | |
| Show Extensions | Cmd+Shift+X | |
| Show Output Panel | Cmd+Shift+U | |
| Open Markdown Preview | Cmd+Shift+V | |
| Split Editor | Cmd+\ | |
| Toggle Panel | Cmd+J | |
| Toggle Minimap | Cmd+K Cmd+M | |
| Toggle Breadcrumbs | Cmd+K Cmd+B |
How to Use
- 1
Select Your OS
Toggle between Windows/Linux and macOS to see the correct keyboard shortcuts for your platform.
- 2
Filter by Category
Use category pills to filter shortcuts by function: Editing, Navigation, Debug, Terminal, and more.
- 3
Search Shortcuts
Search by action name (e.g., "find") or key (e.g., "Ctrl+F") to quickly locate any shortcut.
Examples by Niche
Ctrl+D / Cmd+D to select next occurrence, then edit all at once
Ctrl+P / Cmd+P to open any file by name, Ctrl+G / Cmd+G to go to line
Ctrl+` to toggle terminal, Ctrl+Shift+` to create new terminal
Frequently Asked Questions
What are the most useful VSCode shortcuts?
The most essential shortcuts are Ctrl/Cmd+P (Quick Open file), Ctrl/Cmd+Shift+P (Command Palette), Ctrl/Cmd+D (select next occurrence), Alt+Up/Down (move line), and Ctrl/Cmd+/ (toggle comment). These five shortcuts alone can significantly speed up your workflow.
How do I customize VSCode keyboard shortcuts?
Open the Keyboard Shortcuts editor with Ctrl+K Ctrl+S (or Cmd+K Cmd+S on Mac). You can search for any command and reassign its keybinding. You can also edit keybindings.json directly for advanced customization with when-clause contexts.
Are VSCode shortcuts different on Mac vs Windows?
Yes, Mac uses Cmd instead of Ctrl for most shortcuts, and Option instead of Alt. Some shortcuts also differ completely between platforms. This reference shows the correct shortcut for each platform — use the OS toggle to switch between them.
What are multi-cursor shortcuts in VSCode?
Key multi-cursor shortcuts include Alt+Click to add cursors, Ctrl/Cmd+D to select next occurrence, Ctrl/Cmd+Shift+L to select all occurrences, and Alt+Shift+I to add cursors at end of selected lines. These allow you to edit multiple locations simultaneously.
Related Tools
Related Articles
Prompt Engineering in 2026: Free Tools and Ready-to-Use Prompts for Better AI Results
Master prompt engineering with free browser-based tools. Learn prompting techniques and ready-to-use prompts for better ChatGPT, Claude, and Gemini results — no paid courses needed.
VSCode Keyboard Shortcuts: The Complete Reference Guide for Windows, Mac, and Linux
The complete VSCode keyboard shortcuts reference guide with over 120 shortcuts. Browse by category — editing, navigation, debugging, terminal — for Windows, Linux, and Mac.