A collection of essential keyboard shortcuts to code faster so that you can see your code fail sooner.
Table of Contents
<aside> 💡 Compiled by Abin John
</aside>
<aside> 💡 Official Shortcut Keys Document
</aside>
| Shortcut | Description |
|---|---|
ctrl + p |
quick open → open an existing file |
ctrl + b |
toggle sidebar on/off |
ctrl + k + ctrl + s |
view all keyboard shortcuts |
ctrl + shift + p |
the swiss army knife → command palette |
type your query to see suggestions |
| Shortcut | Description |
|---|---|
ctrl + backspace |
delete the entire word to the left of the cursor |
ctrl + delete |
delete the entire word to the right of the cursor |
ctrl + leftArrow / rightArrow |
jump words with cursor |
ctrl + shift + leftArrow / rightArrow |
select entire words |
ctrl + c while on a line, without selecting anything |
copy entire line |
ctrl + x while on a line, without selecting anything |
cut entire line |
| Shortcut | Description |
|---|---|
ctrl + enter |
ctrl + shift + enter | add a line below/top |
| alt + up
alt + down | move the line up/down |
| alt + shift + up
alt + shift + down | copy line up/down |
| ctrl + shift + k | remove current line |
| ctrl + / | toggle line comment |
| alt + z | toggle word wrap |
| Shortcut | Description |
|---|---|
ctrl + d after making a selection |
select next occurrence of selection. |
Keep tapping d while holding down ctrl to select additional occurrences. |
| ctrl + shift + l | select all occurrences of selection |
| alt + left Click | add multiple cursors |
| ctrl + g | go to line |
| ctrl + shift + \\ | jump to the matching bracket |
| ctrl + up arrow / down arrow | scroll up/down |
| Shortcut | Description |
|---|---|
| `ctrl + `` | open/close terminal |
| `ctrl + shift + `` | open new terminal window |
code <filename> |
terminal command to open a file if it exists, or create one if it doesn’t |