How to use VSCode standard keybindings? #8855
eduardo4jesus
started this conversation in
General
Replies: 1 comment
-
Here are my keybinding settings, and they don't override any of VSCode's default keybinding shortcuts. Perhaps this can help you. // Place your key bindings in this file to override the defaults
[
/*---------------------------------------------------------------------------------------------
* Vim Settings
*--------------------------------------------------------------------------------------------*/
{
"key": "cmd+d",
"command": "-extension.vim_cmd+d",
"when": "editorTextFocus && vim.active && vim.use<D-d> && !inDebugRepl"
},
{
"key": "h",
"command": "editor.action.scrollLeftHover",
"when": "editorHoverFocused"
},
{
"key": "j",
"command": "editor.action.scrollDownHover",
"when": "editorHoverFocused"
},
{
"key": "k",
"command": "editor.action.scrollUpHover",
"when": "editorHoverFocused"
},
{
"key": "l",
"command": "editor.action.scrollRightHover",
"when": "editorHoverFocused"
},
//Explorer
{
"key": "space e", // Doesn't work :D
"command": "workbench.action.toggleSidebarVisibility",
"when": "filesExplorerFocus && !inputFocus"
},
{
"key": "a",
"command": "explorer.newFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "f",
"command": "explorer.newFolder",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "r",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "x",
"command": "filesExplorer.cut",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "y",
"command": "filesExplorer.copy",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},
{
"key": "p",
"command": "filesExplorer.paste",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
},
//K-J Settings
{
"key": "j",
"command": "selectNextSuggestion",
"when": "suggestWidgetVisible && textInputFocus"
},
{
"key": "k",
"command": "selectPrevSuggestion",
"when": "suggestWidgetVisible && textInputFocus"
},
{
"key": "j",
"command": "selectNextCodeAction",
"when": "codeActionMenuVisible"
},
{
"key": "k",
"command": "selectPrevCodeAction",
"when": "codeActionMenuVisible"
},
{
"key": "j",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "k",
"command": "workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen"
},
{
"key": "k",
"command": "list.focusUp",
"when": "listFocus && !inputFocus"
},
{
"key": "j",
"command": "list.focusDown",
"when": "listFocus && !inputFocus"
},
] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just installed this extension, since I like vim a lot. But, I am also used to VS Code short cuts. How to use them with the extension enabled?
Beta Was this translation helpful? Give feedback.
All reactions