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-13 21:56:13 +08:00
|
|
|
"key": "cmd+-",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "workbench.action.navigateBack"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+=",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "workbench.action.navigateForward"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+d",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "editor.action.revealDefinition",
|
|
|
|
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+w",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "workbench.action.closeWindow",
|
|
|
|
"when": "!editorIsOpen && !multipleEditorGroups"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+c",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "editor.action.clipboardCopyAction",
|
|
|
|
"when": "textInputFocus"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+x",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "editor.action.clipboardCutAction",
|
|
|
|
"when": "textInputFocus && !editorReadonly"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+f",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "actions.find"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+n",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "editor.action.nextMatchFindAction",
|
|
|
|
"when": "editorFocus"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +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-13 21:56:13 +08:00
|
|
|
"key": "cmd+g",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "workbench.action.gotoLine"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+/",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "editor.action.commentLine",
|
|
|
|
"when": "editorTextFocus && !editorReadonly"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+shift+=",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "workbench.action.zoomIn"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+2",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "workbench.action.focusSecondEditorGroup"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+1",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "workbench.action.focusFirstEditorGroup"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+b",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "workbench.action.toggleSidebarVisibility"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+shift+r",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "workbench.action.reopenClosedEditor"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+p",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "workbench.action.quickOpen"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+v",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "editor.action.clipboardPasteAction",
|
|
|
|
"when": "textInputFocus && !editorReadonly"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+shift+f",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "workbench.action.findInFiles"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+z",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "undo",
|
|
|
|
"when": "textInputFocus && !editorReadonly"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+shift+z",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "redo",
|
|
|
|
"when": "textInputFocus && !editorReadonly"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+j",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "cursorDown",
|
|
|
|
"when": "textInputFocus"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+k",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "cursorUp",
|
|
|
|
"when": "textInputFocus"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+h",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "cursorLeft",
|
|
|
|
"when": "textInputFocus"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+l",
|
2019-04-08 15:14:18 +08:00
|
|
|
"command": "cursorRight",
|
|
|
|
"when": "textInputFocus"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +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-13 21:56:13 +08:00
|
|
|
"key": "cmd+,",
|
2019-04-08 17:49:13 +08:00
|
|
|
"command": "workbench.action.openSettings"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +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-13 21:56:13 +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-13 21:56:13 +08:00
|
|
|
"key": "cmd+shift+-",
|
2019-04-09 19:49:23 +08:00
|
|
|
"command": "workbench.action.zoomOut"
|
|
|
|
},
|
2019-04-10 16:35:34 +08:00
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+[",
|
2019-04-23 15:56:15 +08:00
|
|
|
"command": "editor.foldAll",
|
|
|
|
"when": "editorTextFocus"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+]",
|
2019-04-23 15:56:15 +08:00
|
|
|
"command": "editor.unfoldAll",
|
|
|
|
"when": "editorTextFocus"
|
|
|
|
},
|
2019-06-03 14:56:03 +08:00
|
|
|
{
|
2019-08-13 21:56:13 +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-13 21:56:13 +08:00
|
|
|
"key": "cmd+n",
|
2019-06-03 15:05:40 +08:00
|
|
|
"command": "workbench.action.terminal.findNextTerminalFocus",
|
|
|
|
"when": "terminalFocus"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+p",
|
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-13 21:56:13 +08:00
|
|
|
"key": "cmd+shift+t",
|
2019-06-26 14:48:31 +08:00
|
|
|
"command": "workbench.action.terminal.newInActiveWorkspace"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+shift+w",
|
2019-06-26 14:48:31 +08:00
|
|
|
"command": "workbench.action.terminal.kill"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+shift+]",
|
2019-06-26 14:48:31 +08:00
|
|
|
"command": "workbench.action.terminal.focusNext"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+shift+[",
|
2019-06-26 14:48:31 +08:00
|
|
|
"command": "workbench.action.terminal.focusPrevious"
|
|
|
|
},
|
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-13 21:56:13 +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-13 21:56:13 +08:00
|
|
|
"key": "cmd+1",
|
2019-08-07 16:36:32 +08:00
|
|
|
"command": "workbench.action.openEditorAtIndex1"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+2",
|
2019-08-07 16:36:32 +08:00
|
|
|
"command": "workbench.action.openEditorAtIndex2"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+3",
|
2019-08-07 16:36:32 +08:00
|
|
|
"command": "workbench.action.openEditorAtIndex3"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+4",
|
2019-08-07 16:36:32 +08:00
|
|
|
"command": "workbench.action.openEditorAtIndex4"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+5",
|
2019-08-07 16:36:32 +08:00
|
|
|
"command": "workbench.action.openEditorAtIndex5"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+6",
|
2019-08-07 16:36:32 +08:00
|
|
|
"command": "workbench.action.openEditorAtIndex6"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+7",
|
2019-08-07 16:36:32 +08:00
|
|
|
"command": "workbench.action.openEditorAtIndex7"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+8",
|
2019-08-07 16:36:32 +08:00
|
|
|
"command": "workbench.action.openEditorAtIndex8"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+9",
|
2019-08-07 16:36:32 +08:00
|
|
|
"command": "workbench.action.openEditorAtIndex9"
|
|
|
|
},
|
|
|
|
{
|
2019-08-13 21:56:13 +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-13 21:56:13 +08:00
|
|
|
"key": "cmd+t",
|
2019-08-13 10:42:50 +08:00
|
|
|
"command": "workbench.action.debug.stop",
|
|
|
|
"when": "inDebugMode"
|
|
|
|
},
|
2019-08-13 11:29:56 +08:00
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+r",
|
|
|
|
"command": "workbench.action.debug.start",
|
|
|
|
"when": "!inDebugMode && !terminalFocus"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "cmd+r",
|
2019-08-13 11:29:56 +08:00
|
|
|
"command": "workbench.action.debug.continue",
|
|
|
|
"when": "inDebugMode"
|
|
|
|
},
|
2019-08-13 16:10:26 +08:00
|
|
|
{
|
2019-08-13 21:56:13 +08:00
|
|
|
"key": "cmd+shift+q",
|
2019-08-13 17:06:05 +08:00
|
|
|
"command": "workbench.action.debug.restart",
|
|
|
|
"when": "inDebugMode"
|
2019-08-13 16:10:26 +08:00
|
|
|
},
|
2019-04-08 15:14:18 +08:00
|
|
|
]
|