Skip to content

Instantly share code, notes, and snippets.

@tranquan
Created November 18, 2021 21:47
Show Gist options
  • Save tranquan/1aa05524607243b7d0103ee992412554 to your computer and use it in GitHub Desktop.
Save tranquan/1aa05524607243b7d0103ee992412554 to your computer and use it in GitHub Desktop.
Key bindings for vscode with vim
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+shift+k",
"command": "workbench.action.terminal.focus"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+j",
"command": "workbench.action.focusActiveEditorGroup"
},
{
"key": "ctrl+shift+j",
"command": "-workbench.action.search.toggleQueryDetails",
"when": "searchViewletVisible"
},
{
"key": "f12",
"command": "editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "cmd+f12",
"command": "-editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "cmd+f12",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "alt+shift+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && vim.active"
},
{
"key": "alt+shift+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && vim.active"
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment