Skip to content

Instantly share code, notes, and snippets.

@luisjunco
Last active November 29, 2023 11:29
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save luisjunco/2c57a9f514a5773242afe8f96b342cbd to your computer and use it in GitHub Desktop.
Save luisjunco/2c57a9f514a5773242afe8f96b342cbd to your computer and use it in GitHub Desktop.
VS Code Shortcuts

Common shortcuts in VS Code (Win // Mac):

  • Comment code: Ctrl (K+C) // ⌘ (K+C)
  • UnComment code: Ctrl (K+U) // ⌘ (K+U)

  • Duplicate line: Alt & Shift + Arrow Down // Option & Shift + Arrow Down
  • Multicursor: hold Alt + click // hold Option + click

  • Find in file: Ctrl + F // ⌘ + F
  • Replace in file: Ctrl + H // ⌥ + ⌘ + F
  • Find in project (global search): Ctrl + Shift + F // ⌘ + Shift + F
    • Note: just as you search, you can also replace.

  • Open file: Ctrl + P // ⌘ + P
  • Command palette: Ctrl + Shift + P // ⌘ + shift + P

More shortcuts:

@luisjunco
Copy link
Author

Bonus:

25 VS Code Productivity Tips and Speed Hacks
https://www.youtube.com/watch?v=ifTF3ags0XI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment