# VS Code keyboard shortcuts (Windows)

> The most used VS Code shortcuts on Windows: Command Palette (Ctrl+Shift+P), Quick Open, go to file (Ctrl+P), Save (Ctrl+S), Toggle line comment (Ctrl+/), Add next match to selection (Ctrl+D). This page lists all 50, from the official documentation.

- Source: [Microsoft · code.visualstudio.com](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf), retrieved November 19, 2026 (2026-11-19)
- Page: https://www.modandkey.com/vscode-keyboard-shortcuts
- Also: [Mac](https://www.modandkey.com/md/vscode-keyboard-shortcuts/mac.md), [Linux](https://www.modandkey.com/md/vscode-keyboard-shortcuts/linux.md)
- Unofficial reference. Not affiliated with Microsoft.

## Files & general

| Command | Shortcut |
|---|---|
| Command Palette | Ctrl+Shift+P |
| Quick Open, go to file | Ctrl+P |
| User Settings | Ctrl+, |
| New file | Ctrl+N |
| Save | Ctrl+S |
| Close editor | Ctrl+W |
| Reopen closed editor | Ctrl+Shift+T |
| Split editor | Ctrl+\ |

## Basic editing

| Command | Shortcut |
|---|---|
| Move line up | Alt+↑ |
| Copy line down | Alt+Shift+↓ |
| Delete line | Ctrl+Shift+K |
| Insert line below | Ctrl+Enter |
| Indent line | Ctrl+] |
| Outdent line | Ctrl+[ |
| Toggle line comment | Ctrl+/ |
| Toggle block comment | Alt+Shift+A |
| Toggle word wrap | Alt+Z |
| Fold region | Ctrl+Shift+[ |
| Unfold region | Ctrl+Shift+] |
| Jump to matching bracket | Ctrl+Shift+\ |

## Multi-cursor & search

| Command | Shortcut |
|---|---|
| Insert cursor above | Ctrl+Alt+↑ |
| Insert cursor below | Ctrl+Alt+↓ |
| Select current line | Ctrl+L |
| Select all occurrences | Ctrl+Shift+L |
| Add next match to selection | Ctrl+D |
| Expand selection | Alt+Shift+→ |
| Find | Ctrl+F |
| Replace | Ctrl+H |
| Search in files | Ctrl+Shift+F |
| Replace in files | Ctrl+Shift+H |

## Code & navigation

| Command | Shortcut |
|---|---|
| Trigger suggestion | Ctrl+Space |
| Format document | Alt+Shift+F |
| Go to Definition | F12 |
| Peek Definition | Alt+F12 |
| Show References | Shift+F12 |
| Rename symbol | F2 |
| Quick Fix | Ctrl+. |
| Go to line | Ctrl+G |
| Go to symbol | Ctrl+Shift+O |
| Problems panel | Ctrl+Shift+M |
| Next error or warning | F8 |

## Panels, terminal & debug

| Command | Shortcut |
|---|---|
| Toggle sidebar | Ctrl+B |
| Explorer | Ctrl+Shift+E |
| Extensions | Ctrl+Shift+X |
| Source Control | Ctrl+Shift+G |
| Show integrated terminal | Ctrl+` |
| New terminal | Ctrl+Shift+` |
| Toggle breakpoint | F9 |
| Start / continue debugging | F5 |
| Step over | F10 |
