vscodesetting/keybindings.json

453 lines
12 KiB
JSON
Raw Normal View History

2020-05-18 16:25:46 +08:00
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+-",
"command": "editor.fold",
},
{
"key": "cmd+=",
"command": "editor.unfoldRecursively",
},
{
"key": "cmd+shift+-",
"command": "editor.foldAll",
},
{
"key": "cmd+shift+=",
"command": "editor.unfoldAll",
},
{
"key": "cmd+d",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
2020-10-14 16:36:52 +08:00
{
"key": "shift+cmd+t",
"command": "workbench.action.closeWindow",
"when": "!multipleEditorGroups && !inDebugMode"
},
2022-01-21 23:31:00 +08:00
// {
// "key": "cmd+w",
// "command": "workbench.action.closeWindow",
// "when": "!editorIsOpen && !terminalFocus && !multipleEditorGroups"
// },
2020-05-18 16:25:46 +08:00
{
"key": "cmd+c",
"command": "editor.action.clipboardCopyAction",
"when": "textInputFocus"
},
{
"key": "cmd+x",
"command": "editor.action.clipboardCutAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+n",
"command": "editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
"key": "cmd+shift+l",
"command": "editor.action.formatSelection",
"when": "editorHasDocumentSelectionFormattingProvider && editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+g",
"command": "workbench.action.gotoLine"
},
{
"key": "cmd+/",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+2",
"command": "workbench.action.focusSecondEditorGroup"
},
{
"key": "cmd+1",
"command": "workbench.action.focusFirstEditorGroup"
},
{
"key": "cmd+b",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+p",
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+v",
"command": "editor.action.clipboardPasteAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+shift+f",
"command": "workbench.action.findInFiles"
},
{
"key": "cmd+z",
"command": "undo",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+shift+z",
"command": "redo",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+j",
"command": "cursorDown",
"when": "textInputFocus"
},
{
"key": "cmd+k",
"command": "cursorUp",
"when": "textInputFocus"
},
{
"key": "cmd+h",
"command": "cursorLeft",
"when": "textInputFocus"
},
{
"key": "cmd+l",
"command": "cursorRight",
"when": "textInputFocus"
},
{
"key": "cmd+shift+j",
"command": "workbench.action.search.toggleQueryDetails",
"when": "searchViewletVisible"
},
{
"key": "cmd+,",
"command": "workbench.action.openSettings"
},
{
"key": "cmd+shift+tab",
"command": "workbench.action.openPreviousRecentlyUsedEditorInGroup"
},
{
"key": "cmd+shift+r",
"command": "workbench.action.reopenClosedEditor"
},
{
"key": "cmd+[",
"command": "workbench.action.navigateBack"
},
{
"key": "cmd+]",
"command": "workbench.action.navigateForward"
},
2020-10-28 20:37:47 +08:00
{
"key": "cmd+[BracketLeft]",
"command": "workbench.action.navigateBack"
},
{
"key": "cmd+[BracketRight]",
"command": "workbench.action.navigateForward"
},
2020-05-18 16:25:46 +08:00
{
"key": "cmd+e",
"command": "workbench.action.togglePanel",
"when": "activePanel"
},
{
"key": "cmd+e",
"command": "workbench.action.toggleMaximizedPanel",
2020-05-18 16:25:46 +08:00
"when": "!activePanel"
},
{
"key": "cmd+n",
"command": "workbench.action.terminal.findNext",
2020-05-18 16:48:41 +08:00
"when": "terminalFindFocused || terminalFocus"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+shift+n",
"command": "workbench.action.terminal.findPrevious",
2020-05-18 16:48:41 +08:00
"when": "terminalFindFocused || terminalFocus"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+t",
2022-01-21 23:31:00 +08:00
"command": "workbench.action.terminal.new",
"when": "activePanel"
},
{
"key": "cmd+t",
"command": "workbench.action.createTerminalEditor",
"when": "!activePanel"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+w",
"command": "workbench.action.terminal.kill",
2021-09-17 16:00:01 +08:00
"when": "terminalFocus || terminalFindFocused"
2020-05-18 16:25:46 +08:00
},
2022-01-21 23:31:00 +08:00
{
"key": "cmd+w",
"command": "workbench.action.terminal.killEditor",
"when": "terminalEditorFocus || terminalFindFocused"
},
2020-05-18 16:25:46 +08:00
{
"key": "cmd+shift+]",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "cmd+shift+[",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
},
{
"key": "shift+escape",
"command": "search.action.clearSearchResults"
},
{
"key": "cmd+shift+n",
"command": "editor.action.previousMatchFindAction",
"when": "editorFocus"
},
{
"key": "cmd+1",
"command": "workbench.action.openEditorAtIndex1",
"when": "editorFocus"
},
{
"key": "cmd+2",
"command": "workbench.action.openEditorAtIndex2",
"when": "editorFocus"
},
{
"key": "cmd+3",
"command": "workbench.action.openEditorAtIndex3",
"when": "editorFocus"
},
{
"key": "cmd+4",
"command": "workbench.action.openEditorAtIndex4",
"when": "editorFocus"
},
{
"key": "cmd+5",
"command": "workbench.action.openEditorAtIndex5",
"when": "editorFocus"
},
{
"key": "cmd+6",
"command": "workbench.action.openEditorAtIndex6",
"when": "editorFocus"
},
{
"key": "cmd+7",
"command": "workbench.action.openEditorAtIndex7",
"when": "editorFocus"
},
{
"key": "cmd+8",
"command": "workbench.action.openEditorAtIndex8",
"when": "editorFocus"
},
{
"key": "cmd+9",
"command": "workbench.action.openEditorAtIndex9",
"when": "editorFocus"
},
{
"key": "cmd+0",
"command": "workbench.action.lastEditorInGroup"
},
{
"key": "cmd+t",
"command": "workbench.action.debug.stop",
"when": "inDebugMode && !terminalFocus && editorFocus"
},
{
"key": "cmd+r",
"command": "workbench.action.debug.start",
"when": "!inDebugMode && !terminalFocus && editorFocus"
},
{
"key": "cmd+shift+s",
"command": "workbench.action.debug.stepOver",
"when": "inDebugMode && !terminalFocus"
},
{
"key": "cmd+r",
"command": "workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"key": "cmd+shift+b",
"command": "editor.debug.action.toggleBreakpoint",
"when": "editorTextFocus"
},
{
"key": "cmd+shift+t",
"command": "workbench.action.debug.restart",
"when": "inDebugMode"
},
{
"key": "cmd+shift+c",
"command": "workbench.action.terminal.toggleFindCaseSensitive",
2020-05-18 16:48:41 +08:00
"when": "terminalFocus || terminalFindFocused"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+shift+c",
"command": "toggleFindCaseSensitive",
"when": "editorFocus"
},
{
"key": "cmd+shift+c",
"command": "toggleSearchCaseSensitive",
"when": "searchViewletFocus && searchViewletVisible && !fileMatchOrFolderMatchFocus"
},
{
"key": "cmd+shift+d",
"command": "workbench.action.terminal.toggleFindWholeWord",
2020-05-18 16:48:41 +08:00
"when": "terminalFocus || terminalFindFocused"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+shift+d",
"command": "toggleFindWholeWord",
"when": "editorFocus"
},
{
"key": "cmd+shift+d",
"command": "toggleSearchWholeWord",
"when": "searchViewletFocus && searchViewletVisible"
},
{
"key": "cmd+f",
"command": "workbench.action.terminal.focusFind",
2022-01-21 23:31:00 +08:00
"when": "!terminalFindFocused && terminalEditorFocus"
},
{
"key": "cmd+f",
"command": "workbench.action.terminal.focusFind",
"when": "!terminalFindFocused && terminalFocus"
2020-11-16 15:06:27 +08:00
},
{
"key": "cmd+f",
"command": "workbench.action.terminal.findNext",
"when": "terminalFindFocused"
2020-05-18 16:25:46 +08:00
},
2022-01-21 23:31:00 +08:00
{
"key": "cmd+f",
"command": "actions.find",
"when": "!findInputFocussed && !terminalFocus && !terminalFindFocused && !terminalEditorFocus"
},
{
"key": "cmd+f",
"command": "editor.action.nextMatchFindAction",
"when": "findInputFocussed && !terminalFocus && !terminalFindFocused && !terminalEditorFocus"
},
2020-05-18 16:25:46 +08:00
{
"key": "cmd+shift+]",
"command": "workbench.action.nextEditor",
2022-01-21 23:31:00 +08:00
"when": "!terminalFocus || terminalEditorFocus"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+shift+[",
"command": "workbench.action.previousEditor",
2022-01-21 23:31:00 +08:00
"when": "!terminalFocus || terminalEditorFocus"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+1",
"command": "workbench.action.terminal.focusAtIndex1",
2021-09-17 16:00:01 +08:00
"when": "terminalFocus || terminalFindFocused"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+2",
"command": "workbench.action.terminal.focusAtIndex2",
2021-09-17 16:00:01 +08:00
"when": "terminalFocus || terminalFindFocused"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+3",
"command": "workbench.action.terminal.focusAtIndex3",
2021-09-17 16:00:01 +08:00
"when": "terminalFocus || terminalFindFocused"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+4",
"command": "workbench.action.terminal.focusAtIndex4",
2021-09-17 16:00:01 +08:00
"when": "terminalFocus || terminalFindFocused"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+5",
"command": "workbench.action.terminal.focusAtIndex5",
2021-09-17 16:00:01 +08:00
"when": "terminalFocus || terminalFindFocused"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+6",
"command": "workbench.action.terminal.focusAtIndex6",
2021-09-17 16:00:01 +08:00
"when": "terminalFocus || terminalFindFocused"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+shift+e",
"command": "workbench.files.action.focusOpenEditorsView",
"when": "workbench.explorer.openEditorsView.active"
},
{
"key": "cmd+shift+o",
"command": "sshHosts.focus"
},
{
"key": "cmd+shift+y",
"command": "gitlens.views.repositories:gitlens.focus"
},
{
"key": "cmd+shift+g",
"command": "workbench.view.debug"
},
{
"key": "cmd+shift+u",
"command": "workbench.view.scm"
},
2020-10-28 20:37:47 +08:00
{
"key": "cmd+.",
"command": "workbench.action.toggleStatusbarVisibility"
},
2020-05-18 16:25:46 +08:00
{
"key": "cmd+m",
2020-05-18 16:37:50 +08:00
"command": "workbench.action.toggleActivityBarVisibility"
2020-05-18 16:25:46 +08:00
},
{
"key": "cmd+shift+w",
2020-11-13 17:37:18 +08:00
"command": "workbench.action.quickSwitchWindow",
"when": "!inQuickOpen"
},
{
"key": "cmd+shift+w",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
2020-10-08 12:00:08 +08:00
},
{
"key": "shift+cmd+;",
"command": "editor.action.formatDocument",
},
2020-10-10 10:31:29 +08:00
{
"key": "cmd+o",
"command": "workbench.action.openRecent"
},
2021-05-24 16:50:06 +08:00
{
"key": "shift+cmd+v",
"command": "open-in-vim.open"
},
2021-09-17 16:00:01 +08:00
{
"key": "ctrl+cmd+w",
"command": "-workbench.action.toggleTabsVisibility"
},
2022-01-21 23:31:00 +08:00
{
"key": "ctrl+shift+`",
"command": "-workbench.action.terminal.new",
"when": "terminalProcessSupported || terminalWebExtensionContributedProfile"
},
{
"key": "cmd+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "escape",
"command": "closeFindWidget",
"when": "findWidgetVisible"
},
2020-10-10 10:31:29 +08:00
]