Skip to content

Instantly share code, notes, and snippets.

@jmscarnatto
Last active December 6, 2023 11:08
Show Gist options
  • Save jmscarnatto/92779bd2ae70024689b30ef5f20e7a02 to your computer and use it in GitHub Desktop.
Save jmscarnatto/92779bd2ae70024689b30ef5f20e7a02 to your computer and use it in GitHub Desktop.
MacOs shortcuts keybinding
// Place your key bindings in this file to override the defaults
[
    {
        "key": "cmd+down",
        "command": "workbench.action.terminal.focusNext",
        "when": "terminalFocus"
    },
    {
        "key": "cmd+up",
        "command": "workbench.action.terminal.focusPrevious",
        "when": "terminalFocus"
    },
    {
        "key": "cmd+left",
        "command": "workbench.action.terminal.focusTabs",
        "when": "terminalFocus"
    },
    {
        "key": "cmd+right",
        "command": "workbench.action.terminal.focus",
        "when": "terminalFocus"
    },
    {
        "key": "ctrl+x",
        "command": "editor.action.deleteLines",
        "when": "textInputFocus && !editorReadonly"
    },
    {
        "key": "shift+cmd+k",
        "command": "-editor.action.deleteLines",
        "when": "textInputFocus && !editorReadonly"
    },
    {
        "key": "cmd+[IntlBackslash]",
        "command": "workbench.action.showNextWindowTab"
    },
    {
        "key": "alt+cmd+z",
        "command": "git.revertSelectedRanges",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+alt+up",
        "command": "workbench.action.editor.nextChange",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+alt+down",
        "command": "workbench.action.editor.previousChange",
        "when": "editorTextFocus"
    }
]```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment