Skip to content

Instantly share code, notes, and snippets.

@acron0
Created July 3, 2023 14:37
Show Gist options
  • Save acron0/64f1d71cf904e8527df1c41353888782 to your computer and use it in GitHub Desktop.
Save acron0/64f1d71cf904e8527df1c41353888782 to your computer and use it in GitHub Desktop.
keybindings.json
// Place your key bindings in this file to override the defaults
[
// emacs
{
"key": "ctrl+a",
"command": "cursorHome",
"when": "editorTextFocus"
},
{
"key": "ctrl+a",
"command": "cursorHome",
"when": "terminalFocus"
},
{
"key": "ctrl+e",
"command": "cursorEnd",
"when": "editorTextFocus"
},
{
"key": "ctrl+e",
"command": "cursorEnd",
"when": "terminalFocus"
},
{
"key": "ctrl+n",
"command": "cursorDown",
"when": "editorTextFocus"
},
{
"key": "ctrl+b",
"command": "cursorLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+f",
"command": "cursorRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+p",
"command": "cursorUp",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+space",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorTextFocus"
},
{
"key": "ctrl+s",
"command": "actions.find",
"when": "editorTextFocus"
},
{
"key": "ctrl+x ctrl+s",
"command": "workbench.action.files.save",
"when": "editorTextFocus"
},
{
"key": "shift+alt+oem_period",
"command": "cursorBottom",
"when": "editorTextFocus"
},
{
"key": "shift+alt+oem_comma",
"command": "cursorTop",
"when": "editorTextFocus"
},
{
"key": "alt+w",
"command": "editor.action.clipboardCopyAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+w",
"command": "editor.action.clipboardCutAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+y",
"command": "editor.action.clipboardPasteAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+x h",
"command": "editor.action.selectAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+x b",
"command": "workbench.action.quickOpen",
"when": "editorTextFocus"
},
{
"key": "alt+f",
"command": "cursorWordEndRight",
"when": "editorTextFocus"
},
{
"key": "alt+b",
"command": "cursorWordEndLeft",
"when": "editorTextFocus"
}
// ,
// {
// "key": "ctrl+c ctrl+z",
// "command": "terminal.focus",
// "when": "editorTextFocus"
// },
// {
// "key": "ctrl+c ctrl+z",
// "command": "workbench.action.focusFirstEditorGroup",
// "when": "terminalFocus"
// }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment