Hi viewers, In this tutorial i will show you most used visual studio code shortcuts.
Basic Editing
| Shortcuts | Meaning |
|---|
| Ctrl + X | Cut line (empty selection) |
| Ctrl + C | Copy line (empty selection) |
| Ctrl + V | Paste line (empty selection) |
| Alt + ↑ / ↓ | Move line up/down |
| Ctrl + Shift + K | Delete line |
| Ctrl + Enter | Insert line below |
| Ctrl + Shift + Enter | Insert line above |
| Ctrl + ↑ / ↓ | Scroll line up/down |
| Alt + Z | Toggle word wrap |
Search and replace
| Shortcuts | Meaning |
|---|
| Ctrl + F | Find |
| Ctrl + H | Replace |
| F3 / Shift + F3 | Find next/previous |
| Alt + Enter | Select all occurences of Find match |
| Ctrl + D | Add selection to next Find match |
File management
| Shortcuts | Meaning |
|---|
| Ctrl + N | New File |
| Ctrl + O | Open File… |
| Ctrl + S | Save |
| Ctrl + Shift + S | Save As… |
| Ctrl + K S | Save All |
| Ctrl + F4 | Close |
| Ctrl + K Ctrl + W | Close All |
| Ctrl + Shift + T | Reopen closed editor |
| Ctrl + K Enter | Keep preview mode editor open |
| Ctrl + Tab | Open next |
| Ctrl + Shift + Tab | Open previous |
| Ctrl + K P | Copy path of active file |
| Ctrl + K R | Reveal active file in Explorer |
| Ctrl +K O | Show active file in new window/instance |
Related