Command Palette
Opens the Command Palette to run any command.
Editor, search, terminal and debugging shortcuts. Every item below is clearly marked as a shortcut, command, or syntax reference.
Opens the Command Palette to run any command.
Opens the file picker to jump to any file by name.
Saves the current file.
Finds text in the current file.
Searches across all files in the workspace.
Auto-formats the whole file.
Comments or uncomments the current line.
Shows or hides the integrated terminal.
Opens the Command Palette to run any command.
Opens the file picker to jump to any file by name.
Saves the current file.
Finds text in the current file.
Searches across all files in the workspace.
Auto-formats the whole file.
Comments or uncomments the current line.
Shows or hides the integrated terminal.
Creates a new untitled file.
Finds and replaces text in the current file.
Jumps to where a symbol is defined.
Renames a variable or function everywhere it is used.
Copies the current line directly below.
Moves the current line up or down.
Selects the next match for multi-cursor editing.
Reopens the most recently closed editor tab.
Jumps to a function, class or variable in the file.
Deletes the current line.
Selects every match of the current selection.
Shows or hides the side bar.
Shows quick fixes and refactorings for the current error.
Opens a new editor window.
Saves all open files.
Closes the current editor tab.
Finds and replaces text across the workspace.
Jumps to a specific line number.
Shows the definition inline without leaving the file.
Lists every place a symbol is used.
Comments or uncomments the selected block.
Inserts a new line below the cursor.
Moves the cursor to the matching bracket.
Adds a cursor on the line below for multi-cursor editing.
Splits the editor into two side-by-side panes.
Enters distraction-free full-screen editing.
Entries with recorded Mac keys are listed below. Official source links are on each reference page.
| Task | Type | Shortcut |
|---|---|---|
| Command Palette | Shortcut | Cmd+Shift+P |
| Quick Open File | Shortcut | Cmd+P |
| Save File | Shortcut | Cmd+S |
| Find | Shortcut | Cmd+F |
| Find in Files | Shortcut | Cmd+Shift+F |
| Format Document | Shortcut | Shift+Option+F |
| Toggle Line Comment | Shortcut | Cmd+/ |
| Toggle Terminal | Shortcut | Ctrl+` |
| New File | Shortcut | Cmd+N |
| Replace | Shortcut | Cmd+Option+F |
| Go to Definition | Shortcut | F12 |
| Rename Symbol | Shortcut | F2 |
| Duplicate Line | Shortcut | Shift+Option+Down |
| Move Line Up or Down | Shortcut | Option+Up/Down |
| Add Cursor to Next Match | Shortcut | Cmd+D |
| Reopen Closed Editor | Shortcut | Cmd+Shift+T |
| Go to Symbol | Shortcut | Cmd+Shift+O |
| Delete Line | Shortcut | Cmd+Shift+K |
| Select All Occurrences | Shortcut | Cmd+Shift+L |
| Toggle Sidebar | Shortcut | Cmd+B |
| Quick Fix | Shortcut | Cmd+. |
| New Window | Shortcut | Cmd+Shift+N |
| Save All | Shortcut | Cmd+Option+S |
| Close Editor | Shortcut | Cmd+W |
| Replace in Files | Shortcut | Cmd+Shift+Option+F |
| Go to Line | Shortcut | Ctrl+G |
| Peek Definition | Shortcut | Option+F12 |
| Find All References | Shortcut | Shift+F12 |
| Toggle Block Comment | Shortcut | Shift+Option+A |
| Insert Line Below | Shortcut | Cmd+Enter |
| Jump to Matching Bracket | Shortcut | Cmd+Shift+\ |
| Add Cursor Below | Shortcut | Cmd+Option+Down |
| Split Editor | Shortcut | Cmd+\ |
| Zen Mode | Shortcut | Cmd+K then Z |
Examples in this reference include Command Palette (Ctrl + Shift + P), Quick Open File (Ctrl + P), Save File (Ctrl + S), Find (Ctrl + F), Find in Files (Ctrl + Shift + F).
Mac key values are listed for 34 of the 34 entries. Use the value shown for the specific action; do not assume Ctrl can be replaced with Cmd. Each reference page links its official source.
Some reference pages include a menu alternative. When no equivalent is documented here, consult the linked official help rather than assuming a key combination.