Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Last active December 25, 2019 20:10
Show Gist options
  • Save sandrabosk/51d870b73f358383203da760c87d5fef to your computer and use it in GitHub Desktop.
Save sandrabosk/51d870b73f358383203da760c87d5fef to your computer and use it in GitHub Desktop.

VS Code shortcuts

  • Search text through all files at once

    • Mac: Command + Shift + f
    • Windows: Ctrl + Shift + f
  • Re-open a closed editor When you have multiple open files and accidentally close one or more of them, finding them, and re-opening can be time-consuming and a little frustrating. This is an undo feature exclusively for tabs:

    • Mac: Command + Shift + t
    • Windows: Ctrl + Shift + t
  • Integrated terminal

    • Both: Ctrl + (Backtick)
  • Delete previous words

    • Mac: Command + Delete
    • Windows: Ctrl + Backspace
  • Select multiple words (select texts word by word)

    • Mac: Shift + Option + Right Arrow or Shift + Option + Left Arrow
    • Windows: Ctrl + Shift + Right Arrow or Ctrl + Shift + Left Arrow
  • Select the same word multiple times

    • Mac: Command + d
    • Windows: Control + d
  • Duplicate line

    • Mac: Command + Shift + d or Shift + Option + Arrow Down
    • Windows: Shift+Alt+Down and Shift+Alt+Up
  • Move to beginning/end of file

    • Mac: Command + Arrow Up or Command + Arrow Down
    • Windows: Ctrl + Home or Ctrl + End
  • Move to the start/end of the line

    • Mac: Command + Left or Command + Right
    • Windows: ?
  • Move line up/down

    • Mac: Option + Arrow Up or Option + Arrow Down
    • Windows: Alt + Arrow Up or Alt + Arrow Down
  • Deleting a whole line

    • Mac: Command + Shift + k or Command + x
    • Windows: Ctrl + x
  • Duplicate cursor above/below When in need to type the same word multiple times, you can simply position cursor so when typed once, word gets to multiple positions in the code.

    • Mac: Command + Option + Arrow Up or Command + Option + Arrow Down
    • Windows: Control + Alt + Arrow Up or Control + Alt + Arrow Down

Extra resources

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