Skip to content

Instantly share code, notes, and snippets.

@jakub-g
Last active November 11, 2021 14:49
Show Gist options
  • Save jakub-g/b49720927e31594e5f66c1b7e509df36 to your computer and use it in GitHub Desktop.
Save jakub-g/b49720927e31594e5f66c1b7e509df36 to your computer and use it in GitHub Desktop.
vscode mac shortcuts
Action Shortcut
Show hover infobox cmd-k,cmd-i
@jakub-g
Copy link
Author

jakub-g commented Nov 11, 2021

custom keybindings since vscode does not support dict file
https://damieng.com/blog/2015/04/24/make-home-end-keys-behave-like-windows-on-mac-os-x


    {
      "key": "ctrl+home",
      "command": "cursorTop",
      "when": "textInputFocus"
    },
    {
      "key": "cmd+home",
      "command": "cursorTop",
      "when": "textInputFocus"
    },
    {
      "key": "cmd+end",
      "command": "cursorBottom",
      "when": "textInputFocus"
    },
    {
      "key": "ctrl+end",
      "command": "cursorBottom",
      "when": "textInputFocus"
    },
    {
      "key": "ctrl+shift+home",
      "command": "cursorTopSelect",
      "when": "textInputFocus"
    },
    {
      "key": "shift+cmd+home",
      "command": "cursorTopSelect",
      "when": "textInputFocus"
    },
    {
      "key": "ctrl+shift+end",
      "command": "cursorBottomSelect",
      "when": "textInputFocus"
    },
    {
      "key": "shift+cmd+end",
      "command": "cursorBottomSelect",
      "when": "textInputFocus"
    },
    {
      "key": "shift+cmd+left",
      "command": "-cursorHomeSelect",
      "when": "textInputFocus"
    },
    {
      "key": "shift+cmd+left",
      "command": "cursorWordLeftSelect",
      "when": "textInputFocus"
    },
    {
      "key": "ctrl+shift+left",
      "command": "-editor.action.smartSelect.shrink",
      "when": "editorTextFocus"
    },
    {
      "key": "ctrl+shift+left",
      "command": "cursorWordLeftSelect",
      "when": "textInputFocus"
    },
    {
      "key": "shift+cmd+right",
      "command": "-cursorEndSelect",
      "when": "textInputFocus"
    },
    {
      "key": "shift+cmd+right",
      "command": "cursorWordRightSelect",
      "when": "textInputFocus"
    },
    {
      "key": "ctrl+shift+right",
      "command": "-editor.action.smartSelect.expand",
      "when": "editorTextFocus"
    },
    {
      "key": "ctrl+shift+right",
      "command": "cursorWordRightSelect",
      "when": "textInputFocus"
    }

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