Skip to content

Instantly share code, notes, and snippets.

@FederAndInk
Created December 24, 2022 08:12
Show Gist options
  • Save FederAndInk/84c781939159a1fb1412ad0b9d2a4290 to your computer and use it in GitHub Desktop.
Save FederAndInk/84c781939159a1fb1412ad0b9d2a4290 to your computer and use it in GitHub Desktop.
my vscode keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+alt+meta+c",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+a",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+c",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+[Period]",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+left",
"command": "workbench.action.navigateBack"
},
{
"key": "alt+left",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+shift+alt+[Equal]",
"command": "-workbench.action.navigateBack"
},
{
"key": "alt+right",
"command": "workbench.action.navigateForward"
},
{
"key": "alt+right",
"command": "workbench.action.navigateForward"
},
{
"key": "ctrl+6",
"command": "-workbench.action.navigateForward"
},
{
"key": "ctrl+d",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "alt+c",
"command": "-toggleFindCaseSensitive",
"when": "editorFocus"
},
{
"key": "alt+c",
"command": "-toggleSearchCaseSensitive",
"when": "searchInputBoxFocus && searchViewletVisible"
},
{
"key": "alt+x",
"command": "openInTerminal"
},
{
"key": "shift+alt+right",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "shift+alt+left",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
},
{
"key": "alt+up",
"command": "workbench.action.terminal.resizePaneUp",
"when": "terminalFocus"
},
{
"key": "ctrl+shift+up",
"command": "-workbench.action.terminal.resizePaneUp",
"when": "terminalFocus"
},
{
"key": "alt+down",
"command": "workbench.action.terminal.resizePaneDown",
"when": "terminalFocus"
},
{
"key": "ctrl+shift+down",
"command": "-workbench.action.terminal.resizePaneDown",
"when": "terminalFocus"
},
{
"key": "alt+up",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus"
},
{
"key": "alt+left",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus"
},
{
"key": "shift+alt+up",
"command": "workbench.action.toggleMaximizedPanel"
},
{
"key": "shift+alt+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+o",
"command": "workbench.view.extension.outline"
},
{
"key": "ctrl+alt+r",
"command": "-revealFileInOS",
"when": "!editorFocus"
},
{
"key": "ctrl+shift+r",
"command": "-workbench.action.quickOpenNavigatePreviousInRecentFilesPicker",
"when": "inQuickOpen && inRecentFilesPicker"
},
{
"key": "ctrl+shift+r",
"command": "-editor.action.refactor",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+r",
"command": "workbench.action.openRecent"
},
{
"key": "ctrl+r",
"command": "-workbench.action.openRecent"
},
{
"key": "ctrl+right",
"command": "cursorWordPartRight",
"when": "textInputFocus"
},
{
"key": "ctrl+alt+right",
"command": "-cursorWordPartRight",
"when": "textInputFocus"
},
{
"key": "ctrl+right",
"command": "-cursorWordEndRight",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+right",
"command": "-cursorWordEndRightSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+right",
"command": "cursorWordPartRightSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+alt+right",
"command": "-cursorWordPartRightSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+alt+left",
"command": "-cursorWordPartStartLeft",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+alt+left",
"command": "-cursorWordPartStartLeftSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+left",
"command": "-cursorWordStartLeft",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+left",
"command": "-cursorWordStartLeftSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+backspace",
"command": "-deleteWordLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+backspace",
"command": "deleteWordPartLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+alt+backspace",
"command": "-deleteWordPartLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+delete",
"command": "-deleteWordRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+delete",
"command": "deleteWordPartRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+alt+delete",
"command": "-deleteWordPartRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+enter",
"command": "-extension.runQueryBuild"
},
{
"key": "alt+o",
"command": "-extension.switch"
},
{
"key": "shift+alt+o",
"command": "-extension.switchRightPane"
},
{
"key": "ctrl+shift+c",
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
},
{
"key": "ctrl+shift+d",
"command": "-workbench.view.debug"
},
{
"key": "ctrl+shift+d",
"command": "editor.action.addSelectionToNextFindMatch"
},
{
"key": "ctrl+n",
"command": "-workbench.action.files.newUntitledFile"
},
{
"key": "ctrl+n",
"command": "explorer.newFile"
},
{
"key": "ctrl+shift+n",
"command": "-workbench.action.newWindow"
},
{
"key": "ctrl+shift+n",
"command": "explorer.newFolder"
},
{
"key": "ctrl+left",
"command": "cursorWordPartLeft",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+left",
"command": "cursorWordPartLeftSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+alt+[Backslash]",
"command": "workbench.action.splitEditor"
},
{
"key": "ctrl+numpad_divide",
"command": "editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "f7",
"command": "-cmake.build"
},
{
"key": "f7",
"command": "workbench.action.tasks.build"
},
{
"key": "ctrl+shift+b",
"command": "-workbench.action.tasks.build"
},
{
"key": "ctrl+f5",
"command": "-cmake.debugTarget",
"when": "inCMakeProject && !inDebugMode"
},
{
"key": "shift+f5",
"command": "-cmake.launchTarget"
},
{
"key": "f5",
"command": "-workbench.action.debug.start",
"when": "!inDebugMode"
},
{
"key": "ctrl+shift+b",
"command": "cmake.build"
},
{
"key": "ctrl+shift+d",
"command": "-mssql.disconnect",
"when": "editorTextFocus && editorLangId == 'sql'"
},
{
"key": "shift+alt+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "shift+alt+down",
"command": "workbench.action.closePanel"
},
{
"key": "alt+o",
"command": "-C_Cpp.SwitchHeaderSource",
"when": "editorTextFocus && editorLangId == 'c'"
},
{
"key": "alt+o",
"command": "-C_Cpp.SwitchHeaderSource",
"when": "editorTextFocus && editorLangId == 'cpp'"
},
{
"key": "alt+o",
"command": "extension.switch"
},
{
"key": "ctrl+up",
"command": "-scrollLineUp",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+alt+meta+left",
"command": "cursorWordLeftSelect"
},
{
"key": "ctrl+meta+right",
"command": "cursorWordRight"
},
{
"key": "ctrl+shift+alt+meta+right",
"command": "cursorWordRightSelect"
},
{
"key": "shift+alt+d",
"command": "editor.action.addSelectionToPreviousFindMatch"
},
{
"key": "ctrl+shift+alt+r",
"command": "workbench.action.reloadWindow"
},
{
"key": "ctrl+r",
"command": "-workbench.action.reloadWindow",
"when": "isDevelopment"
},
{
"key": "ctrl+shift+alt+meta+k",
"command": "ccls.navigate",
"args": {
"direction": "U"
}
},
{
"key": "ctrl+shift+alt+meta+j",
"command": "ccls.navigate",
"args": {
"direction": "D"
}
},
{
"key": "ctrl+shift+alt+meta+h",
"command": "ccls.navigate",
"args": {
"direction": "L"
}
},
{
"key": "ctrl+shift+alt+meta+l",
"command": "ccls.navigate",
"args": {
"direction": "R"
}
},
{
"key": "ctrl+left",
"command": "-cursorWordLeft",
"when": "textInputFocus"
},
{
"key": "f6",
"command": "-workbench.action.focusNextPart"
},
{
"key": "shift+f6",
"command": "-workbench.action.focusPreviousPart"
},
{
"key": "ctrl+f5",
"command": "-workbench.action.debug.run",
"when": "debuggersAvailable"
},
{
"key": "f5",
"command": "-workbench.action.debug.start",
"when": "debuggersAvailable && !inDebugMode"
},
{
"key": "ctrl+f6",
"command": "cmake.launchTarget",
"when": "cmake:enableFullFeatureSet && inCMakeProject && !cmake:hideDebugCommand && !inDebugMode"
},
{
"key": "ctrl+shift+alt+t",
"command": "workbench.action.terminal.newInActiveWorkspace"
},
{
"key": "ctrl+shift+alt+meta+c",
"command": "copyRelativeFilePath",
"when": "!editorFocus"
},
{
"key": "ctrl+shift+alt+c",
"command": "-copyRelativeFilePath",
"when": "!editorFocus"
},
{
"key": "f6",
"command": "cmake.debugTarget",
"when": "cmake:enableFullFeatureSet && inCMakeProject && !cmake:hideDebugCommand && !inDebugMode"
},
{
"key": "ctrl+f5",
"command": "-cmake.debugTarget",
"when": "cmake:enableFullFeatureSet && inCMakeProject && !cmake:hideDebugCommand && !inDebugMode"
},
{
"key": "f9",
"command": "-sortLines.sortLines",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+alt+meta+s",
"command": "workbench.action.openSnippets"
},
{
"key": "ctrl+shift+alt+meta+z",
"command": "editor.action.insertSnippet"
},
{
"key": "ctrl+meta+left",
"command": "cursorWordStartLeft"
},
{
"key": "ctrl+shift+alt+b",
"command": "-xmlTools.formatAsXml"
},
{
"key": "ctrl+shift+alt+b",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+p",
"command": "workbench.action.quickOpen",
"when": "!terminalFocus"
},
{
"key": "ctrl+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "ctrl+p",
"command": "workbench.action.quickOpenNavigateNextInFilePicker",
"when": "!terminalFocus && inFilesPicker && inQuickOpen"
},
{
"key": "ctrl+p",
"command": "-workbench.action.quickOpenNavigateNextInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
{
"key": "ctrl+shift+numpad_add",
"command": "markdown.extension.editing.toggleHeadingUp"
},
{
"key": "ctrl+shift+numpad_subtract",
"command": "markdown.extension.editing.toggleHeadingDown"
},
{
"key": "ctrl+shift+enter",
"command": "-markdown-preview-enhanced.runAllCodeChunks",
"when": "editorLangId == 'markdown'"
},
{
"key": "ctrl+alt+r",
"command": "deleteAllRight"
},
{
"key": "ctrl+alt+w",
"command": "deleteAllLeft"
},
{
"key": "ctrl+alt+r",
"command": "-java.view.package.revealFileInOS",
"when": "focusedView == 'javaProjectExplorer' && java:serverMode == 'Standard'"
},
{
"key": "ctrl+meta+enter",
"command": "python.execInTerminal-icon"
},
{
"key": "ctrl+shift+alt+j",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "ctrl+shift+alt+j",
"command": "workbench.action.focusFirstEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+1",
"command": "-workbench.action.focusFirstEditorGroup"
},
{
"key": "ctrl+shift+f",
"command": "workbench.action.terminal.focusFind",
"when": "terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+f",
"command": "-workbench.action.terminal.focusFind",
"when": "terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+shift+[KeyM]",
"command": "workbench.action.openWorkspaceSettingsFile"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment