vscodesetting/keybindings.json

397 lines
10 KiB
JSON
Raw Normal View History

2019-04-08 15:14:18 +08:00
// Place your key bindings in this file to override the defaultsauto[]
2019-04-06 22:52:21 +08:00
[
2019-04-08 15:14:18 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+-",
2019-08-27 23:26:40 +08:00
"command": "editor.fold",
2019-04-08 15:14:18 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+=",
2020-02-18 21:07:57 +08:00
"command": "editor.unfoldRecursively",
2019-04-08 15:14:18 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+-",
2019-09-14 19:57:21 +08:00
"command": "editor.foldAll",
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+=",
2019-09-14 19:57:21 +08:00
"command": "editor.unfoldAll",
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+d",
2019-04-08 15:14:18 +08:00
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
2020-10-14 17:34:53 +08:00
"key": "shift+cmd+t",
"command": "workbench.action.closeWindow",
"when": "!multipleEditorGroups && !inDebugMode"
},
{
"key": "cmd+w",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+c",
2019-04-08 15:14:18 +08:00
"command": "editor.action.clipboardCopyAction",
"when": "textInputFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+x",
2019-04-08 15:14:18 +08:00
"command": "editor.action.clipboardCutAction",
"when": "textInputFocus && !editorReadonly"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+f",
2019-04-08 15:14:18 +08:00
"command": "actions.find"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+n",
2019-04-08 15:14:18 +08:00
"command": "editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+l",
2019-04-08 15:14:18 +08:00
"command": "editor.action.formatSelection",
"when": "editorHasDocumentSelectionFormattingProvider && editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+g",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.gotoLine"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+/",
2019-04-08 15:14:18 +08:00
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+2",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.focusSecondEditorGroup"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+1",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.focusFirstEditorGroup"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+b",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.toggleSidebarVisibility"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+p",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.quickOpen"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+v",
2019-04-08 15:14:18 +08:00
"command": "editor.action.clipboardPasteAction",
"when": "textInputFocus && !editorReadonly"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+f",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.findInFiles"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+z",
2019-04-08 15:14:18 +08:00
"command": "undo",
"when": "textInputFocus && !editorReadonly"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+z",
2019-04-08 15:14:18 +08:00
"command": "redo",
"when": "textInputFocus && !editorReadonly"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+j",
2019-04-08 15:14:18 +08:00
"command": "cursorDown",
"when": "textInputFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+k",
2019-04-08 15:14:18 +08:00
"command": "cursorUp",
"when": "textInputFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+h",
2019-04-08 15:14:18 +08:00
"command": "cursorLeft",
"when": "textInputFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+l",
2019-04-08 15:14:18 +08:00
"command": "cursorRight",
"when": "textInputFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+j",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.search.toggleQueryDetails",
"when": "searchViewletVisible"
},
2019-04-08 17:49:13 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+,",
2019-04-08 17:49:13 +08:00
"command": "workbench.action.openSettings"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+tab",
2019-04-08 17:49:13 +08:00
"command": "workbench.action.openPreviousRecentlyUsedEditorInGroup"
2019-04-09 11:06:04 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+r",
2019-04-09 11:06:04 +08:00
"command": "workbench.action.reopenClosedEditor"
2019-04-09 19:49:23 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+[",
2019-08-27 23:26:40 +08:00
"command": "workbench.action.navigateBack"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+]",
2019-08-27 23:26:40 +08:00
"command": "workbench.action.navigateForward"
2019-04-23 15:56:15 +08:00
},
2019-06-03 14:56:03 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+e",
2019-09-02 17:42:29 +08:00
"command": "workbench.action.togglePanel",
"when": "activePanel"
2019-09-02 13:32:57 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+e",
"command": "workbench.action.toggleMaximizedPanel",
2019-09-02 17:42:29 +08:00
"when": "!activePanel"
2019-06-03 14:56:03 +08:00
},
2019-06-03 15:05:40 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+n",
2019-11-18 17:20:59 +08:00
"command": "workbench.action.terminal.findNext",
2020-10-14 17:34:53 +08:00
"when": "terminalFindFocused || terminalFocus"
2019-06-03 15:05:40 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+n",
2019-11-18 17:20:59 +08:00
"command": "workbench.action.terminal.findPrevious",
2020-10-14 17:34:53 +08:00
"when": "terminalFindFocused || terminalFocus"
2019-06-03 15:05:40 +08:00
},
2019-06-26 14:48:31 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+t",
2019-08-17 23:34:43 +08:00
"command": "workbench.action.terminal.newInActiveWorkspace",
"when": "terminalFocus"
2019-06-26 14:48:31 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+w",
2019-08-17 23:34:43 +08:00
"command": "workbench.action.terminal.kill",
"when": "terminalFocus"
2019-06-26 14:48:31 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+]",
2019-08-27 10:55:10 +08:00
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
2019-06-26 14:48:31 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+[",
2019-08-27 10:55:10 +08:00
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
2019-06-26 14:48:31 +08:00
},
2019-07-03 18:00:11 +08:00
{
2019-07-08 19:34:00 +08:00
"key": "shift+escape",
2019-07-03 18:00:11 +08:00
"command": "search.action.clearSearchResults"
},
2019-07-07 14:49:56 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+n",
2019-07-07 14:49:56 +08:00
"command": "editor.action.previousMatchFindAction",
"when": "editorFocus"
},
2019-08-07 16:36:32 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+1",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.openEditorAtIndex1",
"when": "editorFocus"
2019-08-07 16:36:32 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+2",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.openEditorAtIndex2",
"when": "editorFocus"
2019-08-07 16:36:32 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+3",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.openEditorAtIndex3",
"when": "editorFocus"
2019-08-07 16:36:32 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+4",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.openEditorAtIndex4",
"when": "editorFocus"
2019-08-07 16:36:32 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+5",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.openEditorAtIndex5",
"when": "editorFocus"
2019-08-07 16:36:32 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+6",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.openEditorAtIndex6",
"when": "editorFocus"
2019-08-07 16:36:32 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+7",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.openEditorAtIndex7",
"when": "editorFocus"
2019-08-07 16:36:32 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+8",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.openEditorAtIndex8",
"when": "editorFocus"
2019-08-07 16:36:32 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+9",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.openEditorAtIndex9",
"when": "editorFocus"
2019-08-07 16:36:32 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+0",
2019-08-07 16:36:32 +08:00
"command": "workbench.action.lastEditorInGroup"
},
2019-08-13 10:42:50 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+t",
2019-08-13 10:42:50 +08:00
"command": "workbench.action.debug.stop",
2019-10-17 10:50:47 +08:00
"when": "inDebugMode && !terminalFocus && editorFocus"
2019-08-13 10:42:50 +08:00
},
2019-08-13 11:29:56 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+r",
2019-08-13 21:56:13 +08:00
"command": "workbench.action.debug.start",
2019-10-17 10:50:47 +08:00
"when": "!inDebugMode && !terminalFocus && editorFocus"
2019-08-13 21:56:13 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+s",
2019-09-08 21:36:35 +08:00
"command": "workbench.action.debug.stepOver",
2019-09-08 21:48:41 +08:00
"when": "inDebugMode && !terminalFocus"
2019-09-08 21:36:35 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+r",
2019-08-13 11:29:56 +08:00
"command": "workbench.action.debug.continue",
"when": "inDebugMode"
},
2019-08-17 16:42:27 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+b",
2019-08-17 16:42:27 +08:00
"command": "editor.debug.action.toggleBreakpoint",
"when": "editorTextFocus"
},
2019-08-17 23:34:43 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+t",
2019-08-17 23:34:43 +08:00
"command": "workbench.action.debug.restart",
"when": "inDebugMode"
},
2019-08-20 19:18:47 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+c",
2019-08-20 19:18:47 +08:00
"command": "workbench.action.terminal.toggleFindCaseSensitive",
2020-10-14 17:34:53 +08:00
"when": "terminalFocus || terminalFindFocused"
2019-08-20 19:18:47 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+c",
2019-08-20 19:18:47 +08:00
"command": "toggleFindCaseSensitive",
"when": "editorFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+c",
2019-08-20 19:18:47 +08:00
"command": "toggleSearchCaseSensitive",
"when": "searchViewletFocus && searchViewletVisible && !fileMatchOrFolderMatchFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+d",
2019-08-20 19:18:47 +08:00
"command": "workbench.action.terminal.toggleFindWholeWord",
2020-10-14 17:34:53 +08:00
"when": "terminalFocus || terminalFindFocused"
2019-08-20 19:18:47 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+d",
2019-08-20 19:18:47 +08:00
"command": "toggleFindWholeWord",
"when": "editorFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+d",
2019-08-20 19:18:47 +08:00
"command": "toggleSearchWholeWord",
"when": "searchViewletFocus && searchViewletVisible"
},
2019-08-20 19:48:36 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+f",
"command": "workbench.action.terminal.focusFind",
"when": "terminalFocus || terminalFindFocused"
2019-08-20 19:48:36 +08:00
},
2019-08-27 14:02:38 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+]",
2019-08-27 14:02:38 +08:00
"command": "workbench.action.nextEditor",
2019-11-02 12:06:29 +08:00
"when": "!terminalFocus"
2019-08-27 14:02:38 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+[",
2019-08-27 14:02:38 +08:00
"command": "workbench.action.previousEditor",
2019-11-02 12:06:29 +08:00
"when": "!terminalFocus"
2019-09-08 18:47:49 +08:00
},
2019-10-14 19:26:57 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+1",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.terminal.focusAtIndex1",
"when": "terminalFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+2",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.terminal.focusAtIndex2",
"when": "terminalFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+3",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.terminal.focusAtIndex3",
"when": "terminalFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+4",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.terminal.focusAtIndex4",
"when": "terminalFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+5",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.terminal.focusAtIndex5",
"when": "terminalFocus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+6",
2019-10-14 19:26:57 +08:00
"command": "workbench.action.terminal.focusAtIndex6",
"when": "terminalFocus"
},
2019-11-02 11:34:47 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+e",
2019-11-02 11:34:47 +08:00
"command": "workbench.files.action.focusOpenEditorsView",
"when": "workbench.explorer.openEditorsView.active"
},
2019-11-08 21:58:38 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+o",
2019-11-08 21:58:38 +08:00
"command": "sshHosts.focus"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+y",
2019-11-08 21:58:38 +08:00
"command": "gitlens.views.repositories:gitlens.focus"
},
2019-11-08 22:13:01 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+g",
2019-11-08 22:13:01 +08:00
"command": "workbench.view.debug"
2019-11-09 14:14:34 +08:00
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+u",
2019-11-09 14:14:34 +08:00
"command": "workbench.view.scm"
},
2019-12-06 11:58:04 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+.",
2019-12-06 11:58:04 +08:00
"command": "workbench.action.toggleStatusbarVisibility"
},
{
2020-10-14 17:34:53 +08:00
"key": "cmd+m",
"command": "workbench.action.toggleActivityBarVisibility"
2019-12-06 11:58:04 +08:00
},
2020-01-28 17:45:21 +08:00
{
2020-10-14 17:34:53 +08:00
"key": "cmd+shift+w",
2020-01-28 17:45:21 +08:00
"command": "workbench.action.quickSwitchWindow"
2020-03-26 14:04:10 +08:00
},
2020-10-14 17:34:53 +08:00
{
"key": "shift+cmd+;",
"command": "editor.action.formatDocument",
// "when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
},
{
"key": "cmd+o",
"command": "workbench.action.openRecent"
},
{
"key": "cmd+t",
"command": "workbench.action.newWindow",
"when": "editorFocus && !inDebugMode && !terminalFocus"
},
]