Skip to content

Instantly share code, notes, and snippets.

@dnnr1
Created March 14, 2026 20:23
Show Gist options
  • Select an option

  • Save dnnr1/2a1e93b003c554338ee7a6ef3c876b54 to your computer and use it in GitHub Desktop.

Select an option

Save dnnr1/2a1e93b003c554338ee7a6ef3c876b54 to your computer and use it in GitHub Desktop.
keybindings.json
[
// File Explorer
{
"key": "a",
"command": "explorer.newFile",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
{
"command": "renameFile",
"key": "e",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
{
"key": "ctrl+n",
"command": "explorer.newFolder",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
{
"command": "deleteFile",
"key": "d",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
{
"key": "c",
"command": "filesExplorer.copy",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
{
"key": "ctrl+p",
"command": "filesExplorer.paste",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
{
"key": "ctrl+x",
"command": "filesExplorer.cut",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus",
},
//Navigation
{
"key": "ctrl+h",
"command": "workbench.action.navigateLeft",
"when": "editorTextFocus",
},
{
"key": "ctrl+l",
"command": "workbench.action.navigateRight",
"when": "editorTextFocus",
},
{
"key": "ctrl+l",
"command": "workbench.action.navigateRight",
"when": "filesExplorerFocus",
},
{
"key": "ctrl+j",
"command": "workbench.action.navigateDown",
"when": "editorTextFocus",
},
{
"key": "ctrl+k",
"command": "workbench.action.navigateUp",
"when": "editorTextFocus",
},
{
"key": "ctrl+j",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen",
},
{
"key": "ctrl+k",
"command": "workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen",
},
//Switch between buffers
{
"key": "ctrl+[",
"command": "workbench.action.previousEditor",
},
{
"key": "ctrl+]",
"command": "workbench.action.nextEditor",
},
//Suggestions
{
"key": "ctrl+j",
"command": "selectNextSuggestion",
"when": "suggestWidgetVisible",
},
{
"key": "ctrl+k",
"command": "selectPrevSuggestion",
"when": "suggestWidgetVisible",
},
{
"key": "ctrl+oem_period",
"command": "workbench.action.togglePanel",
},
{
"key": "ctrl+j",
"command": "-workbench.action.togglePanel",
},
//selectNext word
{
"key": "ctrl+n",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorTextFocus && !editorReadonly",
},
//Disable
{
"key": "ctrl+o",
"command": "-workbench.action.files.openFile",
"when": "true",
},
{
"key": "ctrl+n",
"command": "-workbench.action.files.newUntitledFile",
},
{
"key": "ctrl+h",
"command": "-editor.action.startFindReplaceAction",
"when": "editorFocus || editorIsOpen",
},
{
"key": "ctrl+enter ctrl+oem_5",
"command": "leetcode.submitSolution",
},
{
"key": "ctrl+enter ctrl+enter",
"command": "leetcode.testSolution",
},
{
"key": "ctrl+alt+b",
"command": "-code-telescope.fuzzy.branch",
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment