Last active
November 25, 2020 09:31
-
-
Save nmsobri/663ee266e2e6ccc8f44a073398bdd4f7 to your computer and use it in GitHub Desktop.
Vscode KeyBinding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+j", | |
"command": "workbench.action.quickOpenSelectNext", | |
"when": "inQuickOpen" | |
}, | |
{ | |
"key": "ctrl+k", | |
"command": "workbench.action.quickOpenSelectPrevious", | |
"when": "inQuickOpen" | |
}, | |
{ | |
"key": "v", | |
"command": "extension.vim_escape", | |
"when": "vim.mode != 'Insert' && vim.mode != 'Normal'" | |
}, | |
{ | |
"key": "ctrl+h", | |
"command": "workbench.action.navigateLeft", | |
"when": "vim.mode != 'Insert'" | |
}, | |
{ | |
"key": "ctrl+j", | |
"command": "workbench.action.navigateDown", | |
"when": "editorTextFocus && vim.mode != 'Insert'" | |
}, | |
{ | |
"key": "ctrl+k", | |
"command": "workbench.action.navigateUp", | |
"when": "editorTextFocus && vim.mode != 'Insert'" | |
}, | |
{ | |
"key": "ctrl+k", | |
"command": "workbench.action.navigateUp", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+l", | |
"command": "workbench.action.navigateRight", | |
"when": "vim.mode != 'Insert'" | |
}, | |
{ | |
"key": "ctrl+j", | |
"command": "selectNextSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
}, | |
{ | |
"key": "ctrl+k", | |
"command": "selectPrevSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+l", | |
"command": "terminalCommandKeys.run", | |
"args": { | |
"cmd": "clear" | |
}, | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "o", | |
"command": "list.select", | |
"when": "listFocus && !inputFocus" | |
}, | |
{ | |
"key": "enter", | |
"command": "list.select", | |
"when": "listFocus && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+.", | |
// "command": "workbench.action.terminal.toggleTerminal" | |
"command": "openInTerminal", | |
"args": { | |
"cwd": "${fileDirname}" | |
} | |
}, | |
{ | |
"key": "ctrl+.", | |
"command": "workbench.action.terminal.kill", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+alt+l", | |
"command": "editor.action.formatDocument", | |
"when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+alt+f", | |
"command": "-editor.action.formatDocument", | |
"when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+alt+l", | |
"command": "editor.action.formatDocument.none", | |
"when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorHasDocumentFormattingProvider && !editorReadonly" | |
}, | |
{ | |
"key": "shift+alt+f", | |
"command": "-editor.action.formatDocument.none", | |
"when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorHasDocumentFormattingProvider && !editorReadonly" | |
}, | |
{ | |
"key": "tab", | |
"command": "jumpToNextSnippetPlaceholder", | |
"when": "editorTextFocus && hasNextTabstop && inSnippetMode" | |
}, | |
{ | |
"key": "tab", | |
"command": "-jumpToNextSnippetPlaceholder", | |
"when": "editorTextFocus && hasNextTabstop && inSnippetMode" | |
}, | |
{ | |
"key": "ctrl+p", | |
"command": "-extension.vim_ctrl+p", | |
"when": "suggestWidgetVisible && vim.active && vim.use<C-p> && !inDebugRepl || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'SearchInProgressMode'" | |
}, | |
{ | |
"key": "alt+enter", | |
"command": "editor.action.marker.next", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "alt+f8", | |
"command": "-editor.action.marker.next", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+j", | |
"command": "-workbench.action.togglePanel" | |
}, | |
{ | |
"key": "ctrl+j", | |
"command": "-extension.vim_ctrl+j", | |
"when": "editorTextFocus && vim.active && vim.use<C-j> && !inDebugRepl" | |
}, | |
{ | |
"key": "ctrl+k", | |
"command": "-extension.vim_ctrl+k", | |
"when": "editorTextFocus && vim.active && vim.use<C-k> && !inDebugRepl" | |
}, | |
{ | |
"key": "ctrl+n", | |
"command": "explorer.newFile", | |
"when": "explorerViewletFocus" | |
}, | |
{ | |
"key": "alt+enter", | |
"command": "editor.action.peekDefinition", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "alt+f12", | |
"command": "-editor.action.peekDefinition", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "alt+enter", | |
"command": "extension.vim_escape", | |
"when": "referenceSearchVisible" | |
}, | |
{ | |
"key": "alt+j", | |
"command": "workbench.action.increaseViewHeight" | |
}, | |
{ | |
"key": "alt+k", | |
"command": "workbench.action.decreaseViewHeight" | |
}, | |
{ | |
"key": "alt+h", | |
"command": "workbench.action.decreaseViewWidth" | |
}, | |
{ | |
"key": "alt+l", | |
"command": "workbench.action.increaseViewWidth" | |
}, | |
{ | |
"key": "alt+j", | |
"command": "workbench.action.terminal.resizePaneDown", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "alt+k", | |
"command": "workbench.action.terminal.resizePaneUp", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+x", | |
"command": "workbench.action.closeActiveEditor", | |
}, | |
{ | |
"key": "ctrl+x", | |
"command": "workbench.action.terminal.kill", | |
"when": "terminalFocus" | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment