vscodesetting/keybindings.json

325 lines
8.2 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
{
2019-08-27 23:26:40 +08:00
"key": "cmd+-",
"command": "editor.fold",
"when": "editorTextFocus"
2019-04-08 15:14:18 +08:00
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+=",
"command": "editor.unfold",
"when": "editorTextFocus"
2019-04-08 15:14:18 +08:00
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+d",
2019-04-08 15:14:18 +08:00
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+w",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+c",
2019-04-08 15:14:18 +08:00
"command": "editor.action.clipboardCopyAction",
"when": "textInputFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+x",
2019-04-08 15:14:18 +08:00
"command": "editor.action.clipboardCutAction",
"when": "textInputFocus && !editorReadonly"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+f",
2019-04-08 15:14:18 +08:00
"command": "actions.find"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+n",
2019-04-08 15:14:18 +08:00
"command": "editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+l",
2019-04-08 15:14:18 +08:00
"command": "editor.action.formatSelection",
"when": "editorHasDocumentSelectionFormattingProvider && editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+g",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.gotoLine"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+/",
2019-04-08 15:14:18 +08:00
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+=",
"command": "editor.unfoldAll",
"when": "editorTextFocus"
2019-04-08 15:14:18 +08:00
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+2",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.focusSecondEditorGroup"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+1",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.focusFirstEditorGroup"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+b",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.toggleSidebarVisibility"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+p",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.quickOpen"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+v",
2019-04-08 15:14:18 +08:00
"command": "editor.action.clipboardPasteAction",
"when": "textInputFocus && !editorReadonly"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+f",
2019-04-08 15:14:18 +08:00
"command": "workbench.action.findInFiles"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+z",
2019-04-08 15:14:18 +08:00
"command": "undo",
"when": "textInputFocus && !editorReadonly"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+z",
2019-04-08 15:14:18 +08:00
"command": "redo",
"when": "textInputFocus && !editorReadonly"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+j",
2019-04-08 15:14:18 +08:00
"command": "cursorDown",
"when": "textInputFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+k",
2019-04-08 15:14:18 +08:00
"command": "cursorUp",
"when": "textInputFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+h",
2019-04-08 15:14:18 +08:00
"command": "cursorLeft",
"when": "textInputFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+l",
2019-04-08 15:14:18 +08:00
"command": "cursorRight",
"when": "textInputFocus"
},
{
2019-08-27 23:26:40 +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
{
2019-08-27 23:26:40 +08:00
"key": "cmd+,",
2019-04-08 17:49:13 +08:00
"command": "workbench.action.openSettings"
},
{
2019-08-27 23:26:40 +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
},
{
2019-08-27 23:26:40 +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
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+-",
2019-04-23 15:56:15 +08:00
"command": "editor.foldAll",
"when": "editorTextFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "shift+cmd+[",
"command": "workbench.action.navigateBack"
},
{
"key": "shift+cmd+]",
"command": "workbench.action.navigateForward"
2019-04-23 15:56:15 +08:00
},
2019-06-03 14:56:03 +08:00
{
2019-08-27 23:26:40 +08:00
"key": "cmd+e",
2019-06-03 14:56:03 +08:00
"command": "workbench.action.terminal.toggleTerminal"
},
2019-06-03 15:05:40 +08:00
{
2019-08-27 23:26:40 +08:00
"key": "cmd+n",
2019-06-03 15:05:40 +08:00
"command": "workbench.action.terminal.findNextTerminalFocus",
"when": "terminalFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+n",
2019-06-03 15:05:40 +08:00
"command": "workbench.action.terminal.findPreviousTerminalFocus",
"when": "terminalFocus"
},
2019-06-26 14:48:31 +08:00
{
2019-08-27 23:26:40 +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
},
{
2019-08-27 23:26:40 +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
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+]",
2019-08-27 10:55:10 +08:00
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
2019-06-26 14:48:31 +08:00
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+[",
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
{
2019-08-27 23:26:40 +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
{
2019-08-27 23:26:40 +08:00
"key": "cmd+1",
2019-08-07 16:36:32 +08:00
"command": "workbench.action.openEditorAtIndex1"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+2",
2019-08-07 16:36:32 +08:00
"command": "workbench.action.openEditorAtIndex2"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+3",
2019-08-07 16:36:32 +08:00
"command": "workbench.action.openEditorAtIndex3"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+4",
2019-08-07 16:36:32 +08:00
"command": "workbench.action.openEditorAtIndex4"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+5",
2019-08-07 16:36:32 +08:00
"command": "workbench.action.openEditorAtIndex5"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+6",
2019-08-07 16:36:32 +08:00
"command": "workbench.action.openEditorAtIndex6"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+7",
2019-08-07 16:36:32 +08:00
"command": "workbench.action.openEditorAtIndex7"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+8",
2019-08-07 16:36:32 +08:00
"command": "workbench.action.openEditorAtIndex8"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+9",
2019-08-07 16:36:32 +08:00
"command": "workbench.action.openEditorAtIndex9"
},
{
2019-08-27 23:26:40 +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
{
2019-08-27 23:26:40 +08:00
"key": "cmd+t",
2019-08-13 10:42:50 +08:00
"command": "workbench.action.debug.stop",
2019-08-17 23:34:43 +08:00
"when": "inDebugMode && !terminalFocus"
2019-08-13 10:42:50 +08:00
},
2019-08-13 11:29:56 +08:00
{
2019-08-27 23:26:40 +08:00
"key": "cmd+r",
2019-08-13 21:56:13 +08:00
"command": "workbench.action.debug.start",
"when": "!inDebugMode && !terminalFocus"
},
{
2019-08-27 23:26:40 +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
{
2019-08-27 23:26:40 +08:00
"key": "shift+cmd+b",
2019-08-17 16:42:27 +08:00
"command": "editor.debug.action.toggleBreakpoint",
"when": "editorTextFocus"
},
2019-08-17 23:34:43 +08:00
{
2019-08-27 23:26:40 +08:00
"key": "shift+cmd+t",
2019-08-17 23:34:43 +08:00
"command": "workbench.action.debug.restart",
"when": "inDebugMode"
},
2019-08-20 19:18:47 +08:00
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+s",
2019-08-20 19:18:47 +08:00
"command": "workbench.action.terminal.toggleFindCaseSensitiveTerminalFocus",
"when": "terminalFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+s",
2019-08-20 19:18:47 +08:00
"command": "workbench.action.terminal.toggleFindCaseSensitive",
"when": "terminalFindWidgetFocused"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+s",
2019-08-20 19:18:47 +08:00
"command": "toggleFindCaseSensitive",
"when": "editorFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+s",
2019-08-20 19:18:47 +08:00
"command": "toggleSearchCaseSensitive",
"when": "searchViewletFocus && searchViewletVisible && !fileMatchOrFolderMatchFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+w",
2019-08-20 19:18:47 +08:00
"command": "workbench.action.terminal.toggleFindWholeWordTerminalFocus",
"when": "terminalFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+w",
2019-08-20 19:18:47 +08:00
"command": "workbench.action.terminal.toggleFindWholeWord",
"when": "terminalFindWidgetFocused"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+w",
2019-08-20 19:18:47 +08:00
"command": "toggleFindWholeWord",
"when": "editorFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+w",
2019-08-20 19:18:47 +08:00
"command": "toggleSearchWholeWord",
"when": "searchViewletFocus && searchViewletVisible"
},
2019-08-20 19:48:36 +08:00
{
2019-08-27 23:26:40 +08:00
"key": "cmd+f",
2019-08-20 19:48:36 +08:00
"command": "workbench.action.terminal.focusFindWidget",
"when": "terminalFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+f",
2019-08-20 19:48:36 +08:00
"command": "workbench.action.terminal.focusFindWidget",
"when": "terminalFindWidgetFocused"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+n",
2019-08-20 19:48:36 +08:00
"command": "workbench.action.terminal.findNextTerminalFocus",
"when": "terminalFindWidgetFocused"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+shift+n",
2019-08-20 19:48:36 +08:00
"command": "workbench.action.terminal.findPreviousTerminalFocus",
"when": "terminalFindWidgetFocused"
},
2019-08-27 14:02:38 +08:00
{
2019-08-27 23:26:40 +08:00
"key": "cmd+]",
2019-08-27 14:02:38 +08:00
"command": "workbench.action.nextEditor",
"when": "editorFocus"
},
{
2019-08-27 23:26:40 +08:00
"key": "cmd+[",
2019-08-27 14:02:38 +08:00
"command": "workbench.action.previousEditor",
"when": "editorFocus"
},
2019-04-08 15:14:18 +08:00
]