Type | Explanation | Mac | Windows |
---|---|---|---|
General | Show command palette | β§βP, F1 | Ctrl+Shift+P, F1 |
Quick Open and navigate to file | βP | Ctrl+P | |
New Window | β§βN | Ctrl+Shift+N | |
Close Window | βW | Ctrl+Shift+W | |
User Settings | β, | Ctrl+ | |
Keyboard shortcuts | βK βS | Ctrl+K Ctrl+S | |
Basic Editing | Cut line (empty selection) | βX | Ctrl+X |
Copy line (empty selection) | βC | Ctrl+C | |
Move line up/down | β₯β / β₯β | Alt+ β / β | |
Copy line up/down | β§β₯β / β§β₯β | Shift+Alt + β / β | |
Delete line | β§βK | ||
Insert line below | Ctrl+Enter | ||
Insert line above | Ctrl+Shift+Enter | ||
Insert line below/above | βEnter / β§βEnter | ||
Jump to matching bracket | β§β\ | Ctrl+Shift+\ | |
Indent/outdent line | β] / β[ | Ctrl+] / [ | |
Go to beginning/end of line | Home / End | Home / End | |
Go to beginning of file | Ctrl+Home | ||
Go to end of file | Ctrl+End | ||
Go to beginning/end of file | ββ / ββ | ||
Scroll line up/down | βPgUp / βPgDn | Ctrl+β / β | |
Scroll page up/down | βPgUp /βPgDn | Alt+PgUp / PgDn | |
Fold region | Ctrl+Shift+[ | ||
Unfold region | Ctrl+Shift+] | ||
Fold/unfold region | β₯β[ / β₯β] | ||
Fold/unfold all subregions | βK β[ / βK β] | ||
Fold all subregions | Ctrl+K Ctrl+[ | ||
Unfold all subregions | Ctrl+K Ctrl+] | ||
Fold all regions | Ctrl+K Ctrl+0 | ||
Unfold all regions | Ctrl+K Ctrl+J | ||
Fold/unfold all regions | βK β0 / βK βJ | ||
Add line comment | βK βC | Ctrl+K Ctrl+C | |
Remove line comment | βK βU | Ctrl+K Ctrl+U | |
Toggle line commend | β/ | Ctrl+/ | |
Toggle block comment | β§β₯A | Shift+Alt+A | |
Toggle word wrap | β₯Z | Alt+Z | |
Multi-cursor and selection | Insert cursor | β₯ + click | Alt+Click |
Insert cursor above | β₯ββ | ||
Insert cursor below | β₯ββ | ||
Insert cursor above/below | Ctrl+Alt+ β / β | ||
Undo last cursor operation | βU | Ctrl+U | |
Insert cursor at end of each line selected | β§β₯I | Shift+Alt+I | |
Select current line | βL | Ctrl+L | |
Select all occurrences of current selection | β§βL | Ctrl+Shift+L | |
Select all occurrences of current word | βF2 | Ctrl+F2 | |
Expand selection | Shift+Alt+β | ||
Shrink selection | Shift+Alt+β | ||
Expand/shrink selection | ββ§ββ / β | ||
Column (box) selection | β§β₯ + drag mouse | Shift+Alt + (drag mouse) | |
Column (box) selection up/down | β§β₯ββ / β | Ctrl+shift+Alt+ arrow key | |
Column (box) selection left/right | β§β₯ββ / β | ||
Column (box) selection page up | β§β₯βPgUp | ||
Column (box) selection page down | β§β₯βPgDn | ||
Column (box) selection page up/down | Ctrl+Shift+Alt+PgUp/PgDn | ||
Search and replace | Find | βF | Ctrl+F |
Replace | β₯βF | Ctrl+H | |
Find next/previous | βG / β§βG | F3 / Shift+F3 | |
Select all occurrences of Find match | β₯Enter | Alt+Enter | |
Add selection to next Find match | βD | Ctrl+D | |
Move last selection to next Find match | βK βD | Ctrl+K Ctrl+D | |
Toggle case-sensitive / regex / whole word | Alt+C / R / W | ||
Rich languages editing | Trigger suggestion | βSpace, βI | Ctrl+Space, Ctrl+I |
Trigger parameter hints | β§βSpace | Ctrl+Shift+Space | |
Format document | β§β₯F | Shift+Alt+F | |
Format selection | βK βF | Ctrl+K Ctrl+F | |
Go to Definition | F12 | F12 | |
Peek Definition | β₯F12 | Alt+F12 | |
Open Definition to the side | βK F12 | Ctrl+K F12 | |
Quick Fix | β. | Ctrl+. | |
Show References | β§F12 | Shift+F12 | |
Rename Symbol | F2 | F2 | |
Trim trailing whitespace | βK βX | Ctrl+K Ctrl+X | |
Change file language | βK M | Ctrl+K M | |
Navigation | Show all Symbols | βT | Ctrl+T |
Go to Lineβ¦ | βG | Ctrl+G | |
Go to Fileβ¦ | βP | Ctrl+P | |
Go to Symbolβ¦ | β§βO | Ctrl+Shift+O | |
Show Problems panel | β§βM | Ctrl+Shift+M | |
Go to next error or warning | F8 | ||
Go to previous error or warning | Shift+F8 | ||
Go to next/previous error or warning | F8 / β§F8 | ||
Navigate editor group history | ββ§Tab | Ctrl+Shift+Tab | |
Go back/forward | β- / ββ§- | Alt+ β / β | |
Toggle Tab moves focus | ββ§M | Ctrl+M | |
Editor management | Close editor | βW | Ctrl+F4, Ctrl+W |
Close folder | βK F | Ctrl+K F | |
Split editor | β\ | Ctrl+\ | |
Focus into 1st, 2nd and 3rd editor group | β1 / β2 / β3 | Ctrl+ 1 / 2 / 3 | |
Focus into previous/next editor group | βK ββ / βK ββ | Ctrl+K Ctrl+ β/β | |
Move editor left/right | βK β§ββ / βK β§ββ | Ctrl+Shift+PgUp/PgDn | |
Move active editor group | βK β / βK β | Ctrl+K β / β | |
File management | New File | βN | Ctrl+N |
Open Fileβ¦ | βO | Ctrl+O | |
Save | βS | Ctrl+S | |
Save Asβ¦ | β§βS | Ctrl+Shift+S | |
Save All | β₯βS | Ctrl+K S | |
Close | βW | Ctrl+F4 | |
Close All | βK βW | Ctrl+K Ctrl+W | |
Reopen closed editor | β§βT | Ctrl+Shift+T | |
Keep preview mode editor open | βK Enter | Ctrl+K Enter | |
Open next | Ctrl+Tab | ||
Open previous | Ctrl+Shift+Tab | ||
Open next / previous | βTab / ββ§Tab | ||
Copy path of active file | βK P | Ctrl+K P | |
Reveal active file in Finder | βK R | Ctrl+K R | |
Show active file in new window/instance | βK O | Ctrl+K O | |
Display | Toggle full screen | ββF | F11 |
Toggle editor layout (horizontal/vertical) | β₯β0 | Shift+Alt+0 | |
Zoom in/out | β= / β§β- | Ctrl+ = / - | |
Toggle Sidebar visibility | βB | Ctrl+B | |
Show Explorer / Toggle focus | β§βE | Ctrl+Shift+E | |
Show Search | β§βF | Ctrl+Shift+F | |
Show Source Control | ββ§G | Ctrl+Shift+G | |
Show Debug | β§βD | Ctrl+Shift+D | |
Show Extensions | β§βX | Ctrl+Shift+X | |
Replace in files | β§βH | Ctrl+Shift+H | |
Toggle Search details | β§βJ | Ctrl+Shift+J | |
Show Output panel | β§βU | Ctrl+Shift+U | |
Open Markdown preview | β§βV | Ctrl+Shift+V | |
Open Markdown preview to the side | βK V | Ctrl+K V | |
Zen Mode (Esc Esc to exit) | βK Z | Ctrl+K Z | |
Debug | Toggle breakpoint | F9 | F9 |
Start/Continue | F5 | F5 | |
Step into/ out | F11 / β§F11 | F11 / Shift+F11 | |
Step over | F10 | F10 | |
Stop | β§F5 | Shift+F5 Stop | |
Show hover | βK βI | Ctrl+K Ctrl+I | |
Integrated terminal | Show integrated terminal | β` | Ctrl+` |
Create new terminal | ββ§` | Ctrl+Shift+` | |
Copy selection | βC | Ctrl+C | |
Paste into active terminal | Ctrl+V | ||
Scroll up/down | ββ / β | Ctrl+β / β | |
Scroll page up/down | PgUp / PgDn | Shift+PgUp / PgDn | |
Scroll to top/bottom | βHome / End | Ctrl+Home / End |