VSCode shortcuts - Windows and Linux
1 VSCode - Power editing
Move current line up | Alt+ |
Move current line down | Alt+ |
Duplicate | Ctrl+D |
Redo | Ctrl+⇧ Shift+Z |
Comment / uncomment | Ctrl+/ |
Block comment | Ctrl+⇧ Shift+A |
Expand selection | Alt+⇧ Shift+ |
Shrink selection | Alt+⇧ Shift+ |
Collapse all | Ctrl+K, Ctrl+0 |
Expand all | Ctrl+K, Ctrl+J |
Collapse at cursor | Ctrl+⇧ Shift+[ |
Expand at cursor | Ctrl+⇧ Shift+] |
Toggle wrap text | Alt+Z |
Uppercase | Ctrl+⇧ Shift+U, U |
Lowercase | Ctrl+⇧ Shift+U, L |
Toggle quotes | Ctrl+K, ⇧ Shift+; |
Auto-reformat code | Ctrl+⇧ Shift+I |
Rename with refactor | F2 |
Paste from clipboard history | Ctrl+⇧ Shift+V |
Delete line | Ctrl+⇧ Shift+K |
Select line | Ctrl+L |
Multiple cursors | Alt + Click. |
Block select | Alt+⇧ Shift + Drag. |
Join lines | Ctrl+⇧ Shift+J |
Select next occurrence (of selection) | Alt+J |
Select previous occurrence (of selection) | Alt+⇧ Shift+J |
Select all occurrences | Ctrl+⇧ Shift+L |
Clone caret above | Alt+⇧ Shift+ |
Clone caret below | Alt+⇧ Shift+ |
Toggle Match Case (in find) | Alt+C |
Toggle Words (in find) | Alt+W |
Toggle Regex (in find) | Alt+R |
Fast scroll | Alt + Scroll |
Scroll one page up | Alt+PageUp |
Scroll one page down | Alt+PageDown |
Decrease text size | Ctrl+- |
Increase text size | Ctrl++ |
Open link at cursor | Alt+L |
2 VSCode - Lookup
Show parameters (on selected function) | Ctrl+⇧ Shift+Space |
Finding matching bracket | Ctrl+⇧ Shift+\ |
Copy line reference | Ctrl+Alt+⇧ Shift+C |
Find new commands | Ctrl+⇧ Shift+P |
3 VSCode - Search & replace
Find in file | Ctrl+F |
Replace in file | Ctrl+H |
Find in project | Ctrl+⇧ Shift+F |
Replace in project | Ctrl+⇧ Shift+H |
Go to next occurrence (of Find in files) | F4 |
Go to prev occurrence (of Find in files) | ⇧ Shift+F4 |
Show previous searches | |
Go to previous input (of Find in files) | Ctrl+ |
Go to next input (of Find in files) | Ctrl+ |
Last edit location | Ctrl+⇧ Shift+Backspace |
4 VSCode - Git
Next change (single file) | Ctrl+Alt+⇧ Shift+ |
Previous change (single file) | Ctrl+Alt+⇧ Shift+ |
Annotate | Ctrl+⇧ Shift+G, B |
Revert | Ctrl+Alt+Z |
Show Git panel | Ctrl+⇧ Shift+G, G |
5 VSCode - Jump in code
Add / remove number bookmark | Ctrl+{$shftKey}+1-9 |
Go to number bookmark | Ctrl+1-9 |
Add / remove bookmark | Ctrl+Alt+K |
Go to next bookmark | Ctrl+Alt+L |
Go to previous bookmark | Ctrl+Alt+J |
Show bookmarks | Ctrl+Alt+{$shftKey}+K |
Go to line number | Ctrl+G |
Jump to definition (on selected item) | F12, or Ctrl + Click |
Find usages | ⇧ Shift+F12, or Ctrl + Click |
Peek definition (on selected item) | Ctrl+⇧ Shift+F10 |
Next function in file | Ctrl+ |
Previous function in file | Ctrl+ |
Show structure popup (to navigate methods) | Ctrl+⇧ Shift+. |
Go to next error | Alt+F8 |
Go to previous error | Alt+⇧ Shift+F8 |
6 VSCode - Navigate files
Find file | Ctrl+P |
Find symbol (methods or properties) | Ctrl+T |
Go to tab left | Ctrl+PageUp |
Go to tab right | Ctrl+PageDown |
Move tab left | Ctrl+⇧ Shift+PageUp |
Move tab right | Ctrl+⇧ Shift+PageDown |
Go back (any file) | Ctrl+Alt+- |
Go forward (any file) | Ctrl+⇧ Shift+- |
Switch tabs | Ctrl+Tab |
New scratch file | Ctrl+N |
Close tab | Ctrl+W |
Close all tabs | Ctrl+⇧ Shift+W |
Reopen closed tab | Ctrl+⇧ Shift+T |
Recent files | Ctrl+P |
Focus on path breadcrumbs for current file | Ctrl+⇧ Shift+. |
Delete current file | Ctrl+⇧ Shift+P, "File Utils: Delete" |
7 VSCode - Panels
Open filesystem panel (explorer) | Ctrl+⇧ Shift+E |
Open extensions panel | Ctrl+⇧ Shift+X |
Close left sidebar | Ctrl+B |
Close bottom panel | Ctrl+J |
Open settings | Ctrl+, |
Open keyboard shortcuts | Ctrl+K, Ctrl+S |
Lookup shortcut | Ctrl+K, Ctrl+S, Alt+K |
Toggle right sidebar | Ctrl+Alt+B |
Focus bottom editor | Ctrl+K, Ctrl+Down |
Was this page helpful?