Created
November 14, 2022 11:58
-
-
Save jakubtomsu/6b2c055c4626eebca3d70fc2da99d026 to your computer and use it in GitHub Desktop.
My keybindings for VS Code
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 defaultsauto[] | |
[ | |
{ "key": "ctrl+alt+p", | |
"command": "workbench.action.showCommands" | |
}, | |
{ "key": "ctrl+shift+up", | |
"command": "cursorMove", | |
"args": { | |
"to": "prevBlankLine", | |
"select": true | |
}, | |
"when": "editorTextFocus" | |
}, | |
{ "key": "ctrl+shift+down", | |
"command": "cursorMove", | |
"args": { | |
"to": "nextBlankLine", | |
"select": true | |
}, | |
"when": "editorTextFocus" | |
}, | |
{ "key": "ctrl+up", | |
"command": "cursorMove", | |
"args": { | |
"to": "prevBlankLine", | |
"select": false | |
}, | |
"when": "editorTextFocus" | |
}, | |
{ "key": "ctrl+down", | |
"command": "cursorMove", | |
"args": { | |
"to": "nextBlankLine", | |
"select": false | |
}, | |
"when": "editorTextFocus" | |
}, | |
{ "key": "ctrl+b", | |
"command": "workbench.action.tasks.build" | |
}, | |
{ "key": "ctrl+shift+b", | |
"command": "workbench.action.tasks.runTask", | |
"args": "run" | |
}, | |
{ "key": "ctrl+d", | |
"command": "editor.action.deleteLines" | |
}, | |
{ "key": "ctrl+right", | |
"command": "cursorWordEndRight", | |
"when": "textInputFocus && !accessibilityModeEnabled" | |
}, | |
{ "key": "alt+right", | |
"command": "cursorWordPartRight", | |
"when": "editorTextFocus", | |
}, | |
{ "key": "alt+left", | |
"command": "cursorWordPartLeft", | |
"when": "editorTextFocus", | |
}, | |
{ "key": "ctrl+t", | |
"command": "workbench.action.quickOpen" | |
}, | |
{ "key": "ctrl+r", | |
"command": "workbench.action.showAllSymbols" | |
}, | |
{ "key": "alt+`", | |
"command": "workbench.action.terminal.toggleTerminal", | |
}, | |
{ "key": "alt+backspace", | |
"command": "deleteWordPartLeft", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ "key": "alt+delete", | |
"command": "deleteWordPartRight", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ "key": "ctrl+\\", | |
"command": "editor.action.showHover", | |
"when": "editorTextFocus" | |
}, | |
{ "key": "alt+m", | |
"command": "editor.action.marker.next", | |
"when": "editorTextFocus" | |
}, | |
{ "key": "alt+n", | |
"command": "editor.action.marker.prev", | |
"when": "editorTextFocus" | |
}, | |
// removed keybindings | |
{ "key": "ctrl+b", | |
"command": "-workbench.action.toggleSidebarVisibility" | |
}, | |
{ "key": "ctrl+shift+b", | |
"command": "-workbench.action.tasks.build" | |
}, | |
{ "key": "alt+left", | |
"command": "-workbench.action.navigateBack" | |
}, | |
{ "key": "alt+left", | |
"command": "-workbench.action.quickInputBack", | |
"when": "inQuickOpen" | |
}, | |
{ "key": "alt+left", | |
"command": "-workbench.action.terminal.focusPreviousPane", | |
"when": "terminalFocus && terminalProcessSupported" | |
}, | |
{ "key": "alt+right", | |
"command": "-workbench.action.navigateForward" | |
}, | |
{ "key": "alt+right", | |
"command": "-workbench.action.terminal.focusNextPane", | |
"when": "terminalFocus && terminalProcessSupported" | |
}, | |
{ "key": "ctrl+t", | |
"command": "-workbench.action.showAllSymbols" | |
}, | |
{ "key": "ctrl+`", | |
"command": "-workbench.action.terminal.toggleTerminal", | |
"when": "terminal.active" | |
}, | |
{ "key": "ctrl+shift+m", | |
"command": "-workbench.actions.view.problems", | |
"when": "workbench.panel.markers.view.active" | |
}, | |
{ "key": "up", | |
"command": "-selectPrevSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
}, | |
{ "key": "down", | |
"command": "-selectNextSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
}, | |
{ "key": "ctrl+m", | |
"command": "-editor.action.toggleTabFocusMode" | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment