si:vscode
VS Code Shortcuts
Editors
By EZ4Code Team
General
10| Shortcut | Description | Platform |
|---|---|---|
| Ctrl+Shift+P | Show Command Palette | windows |
| Cmd+Shift+P | Show Command Palette | mac |
| Ctrl+P | Quick Open file | windows |
| Cmd+P | Quick Open file | mac |
| Ctrl+, | Open Settings | windows |
| Cmd+, | Open Settings | mac |
| Ctrl+K Ctrl+S | Open Keyboard Shortcuts | windows |
| Cmd+K Cmd+S | Open Keyboard Shortcuts | mac |
| Ctrl+` | Toggle terminal | windows |
| Cmd+` | Toggle terminal | mac |
Editing
12| Shortcut | Description | Platform |
|---|---|---|
| Ctrl+S | Save file | windows |
| Cmd+S | Save file | mac |
| Ctrl+X | Cut line (no selection) | windows |
| Cmd+X | Cut line (no selection) | mac |
| Ctrl+C | Copy line (no selection) | windows |
| Cmd+C | Copy line (no selection) | mac |
| Alt+Up / Alt+Down | Move line up/down | windows |
| Option+Up / Option+Down | Move line up/down | mac |
| Shift+Alt+Down | Duplicate line down | windows |
| Shift+Option+Down | Duplicate line down | mac |
| Ctrl+/ | Toggle line comment | windows |
| Cmd+/ | Toggle line comment | mac |
Navigation
10| Shortcut | Description | Platform |
|---|---|---|
| Ctrl+G | Go to line | windows |
| Cmd+G | Go to line | mac |
| F12 | Go to definition | all |
| Alt+F12 | Peek definition | windows |
| Option+F12 | Peek definition | mac |
| Shift+F12 | Find all references | all |
| Ctrl+Shift+O | Go to symbol in file | windows |
| Cmd+Shift+O | Go to symbol in file | mac |
| Ctrl+Tab | Switch between open editors | windows |
| Ctrl+Shift+Tab | Switch editors (reverse) | windows |
Search
10| Shortcut | Description | Platform |
|---|---|---|
| Ctrl+F | Find in file | windows |
| Cmd+F | Find in file | mac |
| Ctrl+H | Replace in file | windows |
| Cmd+Option+F | Replace in file | mac |
| Ctrl+Shift+F | Find in files | windows |
| Cmd+Shift+F | Find in files | mac |
| Ctrl+Shift+H | Replace in files | windows |
| Cmd+Shift+Option+F | Replace in files | mac |
| F3 | Find next | all |
| Shift+F3 | Find previous | all |
Multi-cursor
10| Shortcut | Description | Platform |
|---|---|---|
| Alt+Click | Add cursor at click | windows |
| Option+Click | Add cursor at click | mac |
| Ctrl+Alt+Up | Add cursor above | windows |
| Cmd+Option+Up | Add cursor above | mac |
| Ctrl+Alt+Down | Add cursor below | windows |
| Cmd+Option+Down | Add cursor below | mac |
| Ctrl+D | Select next occurrence | windows |
| Cmd+D | Select next occurrence | mac |
| Ctrl+Shift+L | Select all occurrences | windows |
| Cmd+Shift+L | Select all occurrences | mac |