vscodesetting/keybindings.json

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