Files
dotfile/home/.config/Code/User/keybindings.json
T
2023-05-25 01:24:22 +05:45

453 lines
12 KiB
JSON
Executable File

// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+'",
"command": "terminal.focus"
},
{
"key": "ctrl+;",
"command": "workbench.action.focusActiveEditorGroup"
},
{
"key": "ctrl+shift+s",
"command": "-workbench.action.files.saveAs"
},
{
"key": "ctrl+shift+s",
"command": "-workbench.action.files.saveLocalFile",
"when": "remoteFileDialogVisible"
},
{
"key": "ctrl+shift+s",
"command": "workbench.action.files.saveFiles"
},
{
"key": "shift+alt+down",
"command": "-notebook.cell.copyDown",
"when": "notebookEditorFocused && !inputFocus"
},
{
"key": "shift+alt+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+down",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "shift+alt+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+up",
"command": "-editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+up",
"command": "-notebook.cell.copyUp",
"when": "notebookEditorFocused && !inputFocus"
},
{
"key": "shift+alt+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+up",
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+down",
"command": "-workbench.action.terminal.scrollDown",
"when": "terminalFocus && terminalHasBeenCreated && !terminalAltBufferActive || terminalFocus && terminalProcessSupported && !terminalAltBufferActive"
},
{
"key": "ctrl+shift+up",
"command": "-workbench.action.terminal.scrollUp",
"when": "terminalFocus && terminalHasBeenCreated && !terminalAltBufferActive || terminalFocus && terminalProcessSupported && !terminalAltBufferActive"
},
{
"key": "meta+backspace",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "end",
"command": "-cursorEnd",
"when": "textInputFocus"
},
{
"key": "alt+right",
"command": "-gitlens.key.alt+right",
"when": "gitlens:key:alt+right"
},
{
"key": "alt+right",
"command": "cursorLineEnd"
},
{
"key": "shift+alt+right",
"command": "cursorEndSelect",
"when": "textInputFocus"
},
{
"key": "shift+end",
"command": "-cursorEndSelect",
"when": "textInputFocus"
},
{
"key": "alt+left",
"command": "cursorHome",
"when": "textInputFocus"
},
{
"key": "home",
"command": "-cursorHome",
"when": "textInputFocus"
},
{
"key": "shift+alt+left",
"command": "cursorHomeSelect",
"when": "textInputFocus"
},
{
"key": "shift+home",
"command": "-cursorHomeSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+k ctrl+,",
"command": "workbench.action.openSettings"
},
{
"key": "ctrl+,",
"command": "-workbench.action.openSettings"
},
{
"key": "ctrl+,",
"command": "workbench.action.openSettingsJson"
},
{
"key": "home",
"command": "cursorTop",
"when": "textInputFocus"
},
{
"key": "ctrl+home",
"command": "-cursorTop",
"when": "textInputFocus"
},
{
"key": "shift+home",
"command": "cursorTopSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+home",
"command": "-cursorTopSelect",
"when": "textInputFocus"
},
{
"key": "shift+home",
"command": "cursorTopSelect"
},
{
"key": "alt+\\",
"command": "workbench.action.splitEditorDown"
},
{
"key": "ctrl+alt+e",
"command": "-mysql.runQuery",
"when": "editorLangId == 'sql'"
},
{
"key": "alt+a",
"command": "editor.action.inlineSuggest.trigger",
"when": "config.github.copilot.inlineSuggest.enable && editorTextFocus && !editorHasSelection && !inlineSuggestionsVisible"
},
{
"key": "alt+\\",
"command": "-editor.action.inlineSuggest.trigger",
"when": "config.github.copilot.inlineSuggest.enable && editorTextFocus && !editorHasSelection && !inlineSuggestionsVisible"
},
{
"key": "ctrl+shift+alt+a",
"command": "workbench.files.action.createFileFromExplorer"
},
{
"key": "ctrl+alt+meta+n",
"command": "-welcome.showNewFileEntries"
},
{
"key": "ctrl+shift+q",
"command": "explorer.newFile"
},
{
"key": "shift+alt+q",
"command": "explorer.newFolder"
},
{
"key": "ctrl+shift+enter",
"command": "-mysql.runAllQuery",
"when": "editorLangId == 'cql' || editorLangId == 'sql'"
},
{
"key": "ctrl+shift+d",
"command": "-workbench.view.debug",
"when": "viewContainer.workbench.view.debug.enabled"
},
{
"key": "ctrl+shift+d",
"command": "editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "ctrl+shift+l",
"command": "-editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "ctrl+shift+d",
"command": "selectAllSearchEditorMatches",
"when": "inSearchEditor"
},
{
"key": "ctrl+shift+l",
"command": "-selectAllSearchEditorMatches",
"when": "inSearchEditor"
},
{
"key": "ctrl+j",
"command": "editor.action.joinLines",
"when": "editorTextFocus && editorLangId == 'javascript'"
},
{
"key": "ctrl+meta+right",
"command": "workbench.files.action.collapseExplorerFolders"
},
{
"key": "ctrl+shift+z",
"command": "macros.insertSemicolons",
"when": "editorTextFocus && editorLangId =~ /php|blade/"
},
{
"key": "ctrl+shift+alt+r",
"command": "workbench.action.reloadWindow",
"when": "isDevelopment"
},
{
"key": "ctrl+r",
"command": "-workbench.action.reloadWindow",
"when": "isDevelopment"
},
{
"key": "alt+z",
"command": "editor.emmet.action.wrapWithAbbreviation"
},
{
"key": "alt+z",
"command": "-editor.action.toggleWordWrap"
},
{
"key": "tab",
"command": "editor.action.inlineSuggest.commit",
"when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorTabMovesFocus"
},
{
"key": "tab",
"command": "-editor.action.inlineSuggest.commit",
"when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorTabMovesFocus"
},
{
"key": "ctrl+enter",
"command": "github.copilot.generate",
"when": "editorTextFocus && github.copilot.activated"
},
{
"key": "ctrl+enter",
"command": "-github.copilot.generate",
"when": "editorTextFocus && github.copilot.activated"
},
{
"key": "ctrl+alt+down",
"command": "workbench.action.moveActiveEditorGroupDown"
},
{
"key": "ctrl+k down",
"command": "-workbench.action.moveActiveEditorGroupDown"
},
{
"key": "ctrl+alt+up",
"command": "workbench.action.moveActiveEditorGroupUp"
},
{
"key": "ctrl+k up",
"command": "-workbench.action.moveActiveEditorGroupUp"
},
{
"key": "alt+r",
"command": "code-runner.run"
},
{
"key": "ctrl+alt+n",
"command": "-code-runner.run"
},
{
"key": "ctrl+shift+alt+left",
"command": "workbench.action.positionPanelLeft"
},
{
"key": "ctrl+shift+alt+right",
"command": "workbench.action.positionPanelRight"
},
{
"key": "ctrl+shift+alt+down",
"command": "workbench.action.positionPanelBottom"
},
{
"key": "ctrl+shift+enter",
"command": "mysql.runSQL",
"when": "editorLangId == 'cql' || editorLangId == 'sql'"
},
{
"key": "ctrl+enter",
"command": "-mysql.runSQL",
"when": "editorLangId == 'cql' || editorLangId == 'sql'"
},
{
"key": "ctrl+alt+`",
"command": "workbench.action.createTerminalEditor"
},
{
"key": "ctrl+shift+alt+meta+down",
"command": "workbench.action.terminal.moveToTerminalPanel"
},
{
"key": "ctrl+e",
"command": "editor.action.smartSelect.grow"
},
{
"key": "ctrl+k ctrl+c",
"command": "workbench.action.toggleCenteredLayout"
},
{
"key": "ctrl+up",
"command": "cursorMove",
"args": {
"to": "up",
"by": "line",
"value": 15
},
"when": "editorTextFocus"
},
{
"key": "ctrl+down",
"command": "cursorMove",
"args": {
"to": "down",
"by": "line",
"value": 15
},
"when": "editorTextFocus"
},
{
"key": "ctrl+meta+up",
"command": "workbench.action.focusAboveGroup"
},
{
"key": "ctrl+k ctrl+up",
"command": "-workbench.action.focusAboveGroup"
},
{
"key": "ctrl+meta+down",
"command": "workbench.action.focusBelowGroup"
},
{
"key": "ctrl+k ctrl+down",
"command": "-workbench.action.focusBelowGroup"
},
{
"key": "ctrl+meta+left",
"command": "workbench.action.focusLeftGroup"
},
{
"key": "ctrl+k ctrl+left",
"command": "-workbench.action.focusLeftGroup"
},
{
"key": "ctrl+meta+right",
"command": "workbench.action.focusRightGroup"
},
{
"key": "ctrl+k ctrl+right",
"command": "-workbench.action.focusRightGroup"
},
{
"key": "end",
"command": "cursorBottom",
"when": "textInputFocus"
},
{
"key": "ctrl+end",
"command": "-cursorBottom",
"when": "textInputFocus"
},
{
"key": "shift+end",
"command": "cursorBottomSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+end",
"command": "-cursorBottomSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+left",
"command": "cursorWordEndLeft"
},
{
"key": "ctrl+shift+left",
"command": "cursorWordEndLeftSelect"
},
{
"key": "shift+alt+right",
"command": "-editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "shift+alt+left",
"command": "-editor.action.smartSelect.shrink",
"when": "editorTextFocus"
}
]