Some very commonly used and useful shortcommands for Atom and VS code.
Note: If you are on windows replace CMD with Ctrl.
| Command | Atom | VS code |
|---|---|---|
| Cut | CMD + X | CMD + X |
| Copy | CMD + C | CMD + C |
| Paste | CMD + V | CMD + V |
| Select All | CMD + A | CMD + A |
| Duplicate Lines | Shift + CMD + D | Shift + Alt + Up/Down |
| Toggle Line Comment | Shift + CMD + / | Shift + CMD + / |
| Move Line | CMD + Ctrl + Up/Down | Alt + Up/Down |
| Select | Shift + Up/Down/Left/Right | Shift + Up/Down/Left/Right |
If the Toggle line comment command above doesn't work for you in VS code try the following:
| Command | VS code |
|---|---|
| Toggle line comment | Ctrl + ' |
| Make a line comment | Ctrl + K Ctrl + C |
| Undo a line comment | Ctrl + K Ctrl + U |
If you have a preference for a certain IDEs shortcommands/key-binds then there are extentions for VS code that lets you use their keymaps.