General
| Action | Shortcut |
|---|---|
| Show Command Palette | ⇧+⌘+PorF1 |
| Quick Open, Go to File… | ⌘+P |
| New window/instance | ⇧+⌘+N |
| Close window/instance | ⌘+W |
| User Settings | ⌘or |
| Keyboard Shortcuts | ⌘+K+⌘+S |
| Command prompt | ⌃+⇧+P |
| Toggle side bar | ⌃KB |
| Show scope in status bar | ⌃+⇧+⌥+P |
Basic editing
| Action | Shortcut |
|---|---|
| Cut line (empty selection) | ⌘+X |
| Copy line (empty selection) | ⌘+C |
| Move line down/up | ⌥+↓+/⌥+↑ |
| Copy line down/up | ⇧+⌥+↓+/⇧+⌥+↑ |
| Delete line | ⇧+⌘+K |
| Insert line below/above | ⌘+↩+/⇧+⌘+↩ |
| Jump to matching bracket | ⇧+⌘+\ |
| Indent/outdent line | ⌘+]+/⌘+[ |
| Go to beginning/end of line | Home+/End |
| Go to beginning/end of file | ⌘+↑+/⌘+↓ |
| Scroll line up/down | ⌃+Pgup+/⌃+Pgdn |
| Scroll page up/down | ⌘+Pgup/⌘Pgdn |
| Fold/unfold region | ⌥+⌘+[+/⌥+⌘+] |
| Fold/unfold all subregions | ⌘+K+⌘+[+/⌘+K+⌘+] |
| Fold/unfold all regions | ⌘+K+⌘+0+/⌘+K+⌘+J |
| Add line comment | ⌘+K+⌘+C |
| Remove line comment | ⌘+K+⌘+U |
| Toggle line comment | ⌘+/ |
| Toggle block comment | ⇧+⌥+A |
| Toggle word wrap | ⌥+Z |
Rich language editing
| Action | Shortcut |
|---|---|
| Trigger suggestion | ⌃+Space |
| Trigger parameter hints | ⇧+⌘+Space |
| Format document | ⇧+⌥+F |
| Format selection | ⌘+K+⌘+F |
| Go to Definition | F12 |
| Peek Definition | ⌥+F12 |
| Open Definition to the side | ⌘+K+F12 |
| Quick Fix | ⌘+. |
| Show References | ⇧+F12 |
| Rename Symbol | F2 |
| Trim trailing whitespace | ⌘+K+⌘+X |
| Change file language | ⌘+K+M |
Navigation
| Action | Shortcut |
|---|---|
| Show all Symbols | ⌘+T |
| Go to Line... | ⌃+G |
| Go to File... | ⌘+P |
| Go to Symbol... | ⇧+⌘+O |
| Show Problems panel | ⇧+⌘+M |
| Go to next/previous error or warning | F8+/⇧+F8 |
| Navigate editor group history | ⌃+⇧+Tab |
| Go back/forward | ⌃+/⌃+⇧+- |
| Toggle Tab moves focus | ⌃+⇧+M |
Editor management
| Action | Shortcut |
|---|---|
| Close editor | ⌘+W |
| Close folder | ⌘+K+F |
| Split editor | ⌘+\ |
| Focus into 1st, 2nd, 3rd editor group | ⌘+1+/⌘+2+/⌘+3 |
| Focus into previous/next editor group | ⌘+K+⌘+←+/⌘+K+⌘+→ |
| Move editor left/right | ⌘+K+⇧+⌘+←+/⌘+K+⇧+⌘+→ |
| Move active editor group | ⌘+K+←+/⌘+K+→ |
| Close editor | ⌃+F4 |
| Close folder | ⌃+K+F |
| Split editor in 1 / 2 / 3 parts | ⌃+1+/2+/3 |
| Split view into two columns | ⌥+⇧+2 |
| Revert view to single column | ⌥+⇧+1 |
| Move editor left/right | ⌃+⇧+Pgup+/Pgdn |
| Toggle editor layout (horizontal/vertical) | ⇧+⌥+0 |
Search and replace
| Action | Shortcut |
|---|---|
| Find | ⌘+F |
| Replace | ⌥+⌘+F |
| Find next/previous | ⌘+G+/⇧+⌘+G |
| Select all occurrences of Find match | ⌥+↩ |
| Add selection to next Find match | ⌘+D |
| Move last selection to next Find match | ⌘+K+⌘+D |
Display
| Action | Shortcut |
|---|---|
| Toggle full screen | ⌃+⌘+F |
| Toggle editor layout (horizontal/vertical) | ⌥+⌘+0 |
| Zoom in/out | ⌘+=+/⇧+⌘+- |
| Toggle Sidebar visibility | ⌘+B |
| Show Explorer / Toggle focus | ⇧+⌘+E |
| Show Search | ⇧+⌘+F |
| Show Source Control | ⌃+⇧+G |
| Show Debug | ⇧+⌘+D |
| Show Extensions | ⇧+⌘+X |
| Replace in files | ⇧+⌘+H |
| Toggle Search details | ⇧+⌘+J |
| Show Output panel | ⇧+⌘+U |
| Open Markdown preview | ⇧+⌘+V |
| Open Markdown preview to the side | ⌘+K+V |
| Zen Mode (Esc Esc to exit) | ⌘+K+Z |
| Toggle full screen | F11 |
| Zoom in/out | ⌃=/ |
| Toggle Sidebar visibility | ⌃+B |
| Show Explorer / Toggle focus | ⌃+⇧+E |
| Show Search | ⌃+⇧+F |
| Show Source Control | ⌃+⇧+G |
| Show Debug | ⌃+⇧+D |
| Show Extensions | ⌃+⇧+E |
| Replace in files | ⌃+⇧+H |
| Toggle Search details | ⌃+⇧+J |
| Toggle Output panel | ⌃+⇧+U |
| Open Markdown preview | ⌃+⇧+V |
| Open Markdown preview to the side | ⌃+K+V |
| Zen Mode (Esc Esc to exit) | ⌃+K+Z |
File management
| Action | Shortcut |
|---|---|
| New File | ⌘+N |
| Open File... | ⌘+O |
| Save | ⌘+S |
| Save As... | ⇧+⌘+S |
| Save All | ⌥+⌘+S |
| Close | ⌘+W |
| Close All | ⌘+K+⌘+W |
| Reopen closed editor | ⇧+⌘+T |
| Keep preview mode editor open | ⌘+K+↩ |
| Open next / previous | ⌃+Tab+/⌃+⇧+Tab |
| Copy path of active file | ⌘+K+P |
| Reveal active file in Explorer | ⌘+K+R |
| Show active file in new window/instance | ⌘+K+O |
| New file | ⌃+N |
| Open file... | ⌃+O |
| Close current tab | ⌃+W |
| Save | ⌃+S |
| Save as... | ⌃+⇧+S |
| Save all | ⌃+K+S |
| Reopen closed editor | ⌃+⇧+T |
| Toggle tabs | ⌃+Tab |
| Reveal active file in Explorer | ⌃+K+R |
| Show active file in new window/instance | ⌃+K+O |
Debug
| Action | Shortcut |
|---|---|
| Toggle breakpoint | F9 |
| Start/Continue | F5 |
| Step into/ out | F11+/⇧+F11 |
| Step over | F10 |
| Stop | ⇧+F5 |
| Show hover | ⌘+K+⌘+I |
| Toggle breakpoint | F9 |
| Start/Continue | F5 |
| Stop | ⇧+F5 |
| Step into/out | F11+/⇧+F11 |
| Step over | F10 |
| Show hover | ⌃+K+⌃+I |
Integrated terminal
| Action | Shortcut |
|---|---|
| Show integrated terminal | ⌃+` |
| Create new terminal | ⌃+⇧+` |
| Copy selection | ⌘+C |
| Scroll up/down | ⌘+↑+/↓ |
| Scroll page up/down | Pgup+/Pgdn |
| Scroll to top/bottom | ⌘+Home+/End |
| Show integrated terminal | ⌃+` |
| Create new terminal | ⌃+⇧+` |
| Copy selection | ⌃+C |
| Paste into active terminal | ⌃+V |
| Scroll up/down | ⌃+↑+/↓ |
| Scroll page up/down | ⇧+Pgup+/Pgdn |
| Scroll to top/bottom | ⌃+Home+/End |
Multi-cursor selection
| Action | Shortcut |
|---|---|
| Insert cursor | ⌥click |
| Insert cursor above | ⌥+⌘+↑ |
| Insert cursor below | ⌥+⌘+↓ |
| Undo last cursor operation | ⌘+U |
| Insert cursor at end of each line selected | ⇧+⌥+I |
| Select current line | ⌘+I |
| Select all occurrences of current selection | ⇧+⌘+L |
| Select all occurrences of current word | ⌘+F2 |
| Expand / shrink selection | ⌃+⇧+⌘+→+/← |
| Column (box) selection | ⇧+⌥dragmouse |
| Column (box) selection up/down | ⇧+⌥+⌘+↑+/↓ |
| Column (box) selection left/right | ⇧+⌥+⌘+←+/→ |
| Column (box) selection page up | ⇧+⌥+⌘+Pgup |
| Column (box) selection page down | ⇧+⌥+⌘+Pgdn |
Editing
| Action | Shortcut |
|---|---|
| Cut line | ⌃+X |
| Insert line bellow | ⌃+↩ |
| Insert line above | ⌃+⇧+↩ |
| Move line/selection up | ⌥+↑ |
| Move line/selection down | ⌥+↓ |
| Select word - Repeat select others occurrences | ⌃+D |
| Delete Line | ⌃+⇧+K |
| Indent current line(s) | ⌃+] |
| Un-indent current line(s) | ⌃+[ |
| Duplicate line(s) up/down | ⌥+⇧↑/↓ |
| Go to the begining of line | Home |
| Go to the end of line | End |
| Scroll line up | ⌃+↑ |
| Scroll line down | ⌃+↓ |
| Go to the begining of file | ⌃+Home |
| Go to the end of file | ⌃+End |
| Collapse region | ⌃+⇧+[ |
| Uncollapse region | ⌃+⇧+] |
| Collapse all regions | ⌃+K+⌃+0 |
| Uncoollapse all regions | ⌃+K+⌃+J |
| Toggle line comment | ⌃+/ |
| Toggle word wrap | ⌥+Z |
Navigation/Goto Anywhere
| Action | Shortcut |
|---|---|
| Goto line in current file | ⌃+G |
| Quick-open files by name | ⌃+P |
| Goto symbol | ⌃+⇧+O |
| Show Problems panel | ⌃+⇧+M |
| Go to next error warning | F8 |
| Go to previous error warning | ⇧+F8 |
| Navigate editor group history | ⌃+⇧+Tab |
| Go back / forward | ⌥+←+/→ |
Find/Replace
| Action | Shortcut |
|---|---|
| Find | ⌃+F |
| Replace | ⌃+H |
| Find next / previous | F3+/⇧+F3 |
| Select all occurrences of Find match | ⌥+↩ |
| Find in files | ⌃+⇧+F |
| Add selection to the next Find match | ⌃+D |
Multi-cursor and selection
| Action | Shortcut |
|---|---|
| Insert cursor | ⌥Click |
| Undo last cursor operation | ⌃+U |
| Insert cursor at end of each line selected | ⇧+⌥+I |
| Select current line | ⌃+I |
| Select all occurrences of current selection | ⌃+⇧+L |
| Select all occurrences of current word | ⌃+F2 |
| Expand selection | ⇧+⌥+→ |
| Shrink selection | ⇧+⌥+← |
| Column (box) selection | ⇧+⌥(dragmouse) |
Rich languages editing
| Action | Shortcut |
|---|---|
| Trigger suggestion | ⌃+Space |
| Trigger parameter hints | ⌃+⇧+Space |
| Format document | ⇧+⌥+F |
| Format selection | ⌃+K+⌃+F |
| Go to definition | F12 |
| Peek definition | ⌥+F12 |
| Open Definition to the side | ⌃+K+F12 |
| Trim trailing whitespace | ⌃+K+⌃+X |
| Change file language | ⌃+K+M |
