Skip to content

Instantly share code, notes, and snippets.

@paulwongx
Last active June 2, 2022 00:22
Show Gist options
  • Save paulwongx/3ac0b8734595d37cef121d1ec50f98b1 to your computer and use it in GitHub Desktop.
Save paulwongx/3ac0b8734595d37cef121d1ec50f98b1 to your computer and use it in GitHub Desktop.
Shortcuts

VSCode Shortcuts

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

Windows CLI

type nul > file.ts
echo some text > file.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment