Skip to content

Instantly share code, notes, and snippets.

@paulhhowells
Last active April 6, 2020 12:58
Show Gist options
  • Save paulhhowells/4275c132962e71e5c71d1e9b72498866 to your computer and use it in GitHub Desktop.
Save paulhhowells/4275c132962e71e5c71d1e9b72498866 to your computer and use it in GitHub Desktop.
vscode shortcuts

VSCode shortcuts

⇧ shift
⌃ control
⌥ option
⌘ command
⌃ ⇧ F      Search Text Through All Files At Once
⌃ `        Integrated Terminal [Open / Close]
⇧ ⌘ P      Open command palette
⌃ ⌘ →      Move Tab to another Group
⌥ ⌘ →      Jump to next Tab

⇧ ⌥ F      Format Document - Format the entire active file.
⌘K ⌘F      Format Selection - Format the selected text.

⌘ ←        Move cursor to start of line
⌘ →        Move cursor to end of line

⌘ i        Select line, and move cursor to next line      
⌥ Click    Add another cursor
⌥ ⌘ ↑      Extend selection up
⌥ ⌘ ↓      Extend selection down

⌥ ↑        Move line up
⌥ ↓        Move line down
⌥ ←        Move cursor left by a word
⌥ →        Move cursor right by a word

⇧ ←        Expand selection left
⇧ →        Expand selection right

⇧ ⌥ →      Expand the selection - Expand selection right by a word
⇧ ⌥ ←      Shrink the selection - Expand selection left by a word
⇧ ⌥ ↑      Copy line up (cursor moves up into new line)
⇧ ⌥ ↓      Copy line down (cursor moves down into new line)

⇧ ⌘ ⌃ →    Expand selection (word, line, all)

⌃ ⌥ ⌘ ←    set to moveCarretLeftAction
⌃ ⌥ ⌘ →    set to moveCarretRightAction

To set Move Caret key binding

Preferences -> Keyboard Shortcuts (⌘K ⌘S)
editor.action.moveCarretLeftAction (Move Caret Left)
editor.action.moveCarretRightAction (Move Caret Right)

JSX

Enable Emmet in JSX in .js files.

⌘ , Open Preferences > Settings

  "emmet.includeLanguages": {
    "javascript": "javascriptreact"
  }

Mac OS

Control Command Space` to open the Character Viewer (with Emojis )
⌥ ⇧ ⌘ V     Paste & Match Style 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment