Windows Shortcut | MacOS | Function |
---|---|---|
Alt + Up/Down Arrow | Opt + Up/Down Arrow | Moves line of code up or down |
Alt + Shift + Up/Down Arrow | Opt + Shift + Up/Down Arrow | Duplicates line of code |
Ctrl + P | Cmd + P | Search and open a file quickly |
Ctrl + Shift + P | Cmd + Shift + P | Open up the command prompt |
Alt + Shift + F | Shift + Opt + F | Format document |
Ctrl + Shift + F | Shift + Cmd + F | Search for file |
Ctrl + Shift + E | Shift + Cmd + E | Open up file explorer |
Ctrl + / | Cmd + / | Comment |
Ctrl + D | Cmd + D | Find next instance of text |
Ctrl + D -> Alt + C | Cmd + D -> Opt + Cmd + C | Find next instance of text (Match case) |
Ctrl + D -> Alt + W | Cmd + D -> Opt + Cmd + W | Find next instance of text (Match whole world) |
? | Cmd + Opt + Down | Duplicate the cursor |
type nul > file.ts
echo some text > file.ts