How to use this list
Type what you want to do — “cursor”, “terminal”, “format” — or filter by section. Keys joined by + are pressed together; keys separated by a comma are a chord: press the first combination, release, then press the next. Download the PDF cheat sheet to keep beside your keyboard.
The shortcuts that save the most time
- Command Palette (Ctrl+Shift+P) — every command in VS Code, searchable by name. If you forget a shortcut, find the command here and the shortcut is shown next to it.
- Quick Open (Ctrl+P) — jump to any file by typing part of its name. Add : and a number to go to a line, or @ to go to a symbol.
- Multiple cursors — Ctrl+D adds the next match of a word to the selection, so you can rename it everywhere in seconds. Alt+Click places cursors anywhere.
- Move and copy lines — Alt+Up/Down moves the line; add Shift to copy it instead.
- Rename symbol (F2) — renames a variable or function across every file, safer than find-and-replace.
Customising shortcuts
Open the Keyboard Shortcuts editor with Ctrl+K, Ctrl+S to search, change or remove any binding. Moving from another editor? Install a keymap extension (for example the Sublime Text keymap) to keep the shortcuts you already know — see the Sublime Text shortcut list. For system-wide keys, see Windows keyboard shortcuts.
Frequently asked questions
How do I select all occurrences of a word in VS Code?
Put the cursor on the word and press Ctrl+F2, or select it and press Ctrl+Shift+L. To add matches one at a time, press Ctrl+D repeatedly.
What is the shortcut to format code in VS Code?
Shift+Alt+F formats the whole document; Ctrl+K then Ctrl+F formats only the selection. You need a formatter for the language, such as Prettier for JavaScript.
How do I open the terminal in VS Code?
Press Ctrl+` (the backtick key, left of 1) to show or hide the integrated terminal. Ctrl+Shift+` opens a new terminal.
What does Ctrl+K, Ctrl+S mean?
It's a chord: press Ctrl+K, release, then press Ctrl+S. This one opens the Keyboard Shortcuts editor, where you can search and change any shortcut.
Are the shortcuts the same on a Mac?
Mostly — use Cmd in place of Ctrl. A few differ, for example the terminal is Ctrl+` on Mac too, and moving lines uses Option+Up/Down.
Last updated: 24 September 2026Suggest an improvement · Report a problem
