Update keybindings.json

This commit is contained in:
lianghongkey 2019-08-27 23:26:40 +08:00 committed by GitHub
parent f84ae79e07
commit a030f97b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 138 additions and 136 deletions

View File

@ -1,177 +1,179 @@
// Place your key bindings in this file to override the defaultsauto[] // Place your key bindings in this file to override the defaultsauto[]
[ [
{ {
"key": "ctrl+-", "key": "cmd+-",
"command": "workbench.action.navigateBack" "command": "editor.fold",
"when": "editorTextFocus"
}, },
{ {
"key": "ctrl+=", "key": "cmd+=",
"command": "workbench.action.navigateForward" "command": "editor.unfold",
"when": "editorTextFocus"
}, },
{ {
"key": "ctrl+d", "key": "cmd+d",
"command": "editor.action.revealDefinition", "command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
}, },
{ {
"key": "ctrl+w", "key": "cmd+w",
"command": "workbench.action.closeWindow", "command": "workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups" "when": "!editorIsOpen && !multipleEditorGroups"
}, },
{ {
"key": "ctrl+c", "key": "cmd+c",
"command": "editor.action.clipboardCopyAction", "command": "editor.action.clipboardCopyAction",
"when": "textInputFocus" "when": "textInputFocus"
}, },
{ {
"key": "ctrl+x", "key": "cmd+x",
"command": "editor.action.clipboardCutAction", "command": "editor.action.clipboardCutAction",
"when": "textInputFocus && !editorReadonly" "when": "textInputFocus && !editorReadonly"
}, },
{ {
"key": "ctrl+f", "key": "cmd+f",
"command": "actions.find" "command": "actions.find"
}, },
{ {
"key": "ctrl+n", "key": "cmd+n",
"command": "editor.action.nextMatchFindAction", "command": "editor.action.nextMatchFindAction",
"when": "editorFocus" "when": "editorFocus"
}, },
{ {
"key": "ctrl+shift+l", "key": "cmd+shift+l",
"command": "editor.action.formatSelection", "command": "editor.action.formatSelection",
"when": "editorHasDocumentSelectionFormattingProvider && editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly" "when": "editorHasDocumentSelectionFormattingProvider && editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly"
}, },
{ {
"key": "ctrl+g", "key": "cmd+g",
"command": "workbench.action.gotoLine" "command": "workbench.action.gotoLine"
}, },
{ {
"key": "ctrl+/", "key": "cmd+/",
"command": "editor.action.commentLine", "command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
{ {
"key": "ctrl+shift+=", "key": "cmd+shift+=",
"command": "workbench.action.zoomIn"
},
{
"key": "ctrl+2",
"command": "workbench.action.focusSecondEditorGroup"
},
{
"key": "ctrl+1",
"command": "workbench.action.focusFirstEditorGroup"
},
{
"key": "ctrl+b",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+p",
"command": "workbench.action.quickOpen"
},
{
"key": "ctrl+v",
"command": "editor.action.clipboardPasteAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+f",
"command": "workbench.action.findInFiles"
},
{
"key": "ctrl+z",
"command": "undo",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+z",
"command": "redo",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+j",
"command": "cursorDown",
"when": "textInputFocus"
},
{
"key": "ctrl+k",
"command": "cursorUp",
"when": "textInputFocus"
},
{
"key": "ctrl+h",
"command": "cursorLeft",
"when": "textInputFocus"
},
{
"key": "ctrl+l",
"command": "cursorRight",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+j",
"command": "workbench.action.search.toggleQueryDetails",
"when": "searchViewletVisible"
},
{
"key": "ctrl+,",
"command": "workbench.action.openSettings"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.openPreviousRecentlyUsedEditorInGroup"
},
{
"key": "ctrl+shift+r",
"command": "workbench.action.reopenClosedEditor"
},
{
"key": "ctrl+shift+-",
"command": "workbench.action.zoomOut"
},
{
"key": "ctrl+shift+[",
"command": "editor.foldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+]",
"command": "editor.unfoldAll", "command": "editor.unfoldAll",
"when": "editorTextFocus" "when": "editorTextFocus"
}, },
{ {
"key": "ctrl+e", "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+shift+-",
"command": "editor.foldAll",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+[",
"command": "workbench.action.navigateBack"
},
{
"key": "shift+cmd+]",
"command": "workbench.action.navigateForward"
},
{
"key": "cmd+e",
"command": "workbench.action.terminal.toggleTerminal" "command": "workbench.action.terminal.toggleTerminal"
}, },
{ {
"key": "ctrl+n", "key": "cmd+n",
"command": "workbench.action.terminal.findNextTerminalFocus", "command": "workbench.action.terminal.findNextTerminalFocus",
"when": "terminalFocus" "when": "terminalFocus"
}, },
{ {
"key": "ctrl+shift+n", "key": "cmd+shift+n",
"command": "workbench.action.terminal.findPreviousTerminalFocus", "command": "workbench.action.terminal.findPreviousTerminalFocus",
"when": "terminalFocus" "when": "terminalFocus"
}, },
{ {
"key": "ctrl+t", "key": "cmd+t",
"command": "workbench.action.terminal.newInActiveWorkspace", "command": "workbench.action.terminal.newInActiveWorkspace",
"when": "terminalFocus" "when": "terminalFocus"
}, },
{ {
"key": "ctrl+w", "key": "cmd+w",
"command": "workbench.action.terminal.kill", "command": "workbench.action.terminal.kill",
"when": "terminalFocus" "when": "terminalFocus"
}, },
{ {
"key": "ctrl+]", "key": "cmd+]",
"command": "workbench.action.terminal.focusNext", "command": "workbench.action.terminal.focusNext",
"when": "terminalFocus" "when": "terminalFocus"
}, },
{ {
"key": "ctrl+[", "key": "cmd+[",
"command": "workbench.action.terminal.focusPrevious", "command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus" "when": "terminalFocus"
}, },
@ -180,142 +182,142 @@
"command": "search.action.clearSearchResults" "command": "search.action.clearSearchResults"
}, },
{ {
"key": "ctrl+shift+n", "key": "cmd+shift+n",
"command": "editor.action.previousMatchFindAction", "command": "editor.action.previousMatchFindAction",
"when": "editorFocus" "when": "editorFocus"
}, },
{ {
"key": "ctrl+1", "key": "cmd+1",
"command": "workbench.action.openEditorAtIndex1" "command": "workbench.action.openEditorAtIndex1"
}, },
{ {
"key": "ctrl+2", "key": "cmd+2",
"command": "workbench.action.openEditorAtIndex2" "command": "workbench.action.openEditorAtIndex2"
}, },
{ {
"key": "ctrl+3", "key": "cmd+3",
"command": "workbench.action.openEditorAtIndex3" "command": "workbench.action.openEditorAtIndex3"
}, },
{ {
"key": "ctrl+4", "key": "cmd+4",
"command": "workbench.action.openEditorAtIndex4" "command": "workbench.action.openEditorAtIndex4"
}, },
{ {
"key": "ctrl+5", "key": "cmd+5",
"command": "workbench.action.openEditorAtIndex5" "command": "workbench.action.openEditorAtIndex5"
}, },
{ {
"key": "ctrl+6", "key": "cmd+6",
"command": "workbench.action.openEditorAtIndex6" "command": "workbench.action.openEditorAtIndex6"
}, },
{ {
"key": "ctrl+7", "key": "cmd+7",
"command": "workbench.action.openEditorAtIndex7" "command": "workbench.action.openEditorAtIndex7"
}, },
{ {
"key": "ctrl+8", "key": "cmd+8",
"command": "workbench.action.openEditorAtIndex8" "command": "workbench.action.openEditorAtIndex8"
}, },
{ {
"key": "ctrl+9", "key": "cmd+9",
"command": "workbench.action.openEditorAtIndex9" "command": "workbench.action.openEditorAtIndex9"
}, },
{ {
"key": "ctrl+0", "key": "cmd+0",
"command": "workbench.action.lastEditorInGroup" "command": "workbench.action.lastEditorInGroup"
}, },
{ {
"key": "ctrl+t", "key": "cmd+t",
"command": "workbench.action.debug.stop", "command": "workbench.action.debug.stop",
"when": "inDebugMode && !terminalFocus" "when": "inDebugMode && !terminalFocus"
}, },
{ {
"key": "ctrl+r", "key": "cmd+r",
"command": "workbench.action.debug.start", "command": "workbench.action.debug.start",
"when": "!inDebugMode && !terminalFocus" "when": "!inDebugMode && !terminalFocus"
}, },
{ {
"key": "ctrl+r", "key": "cmd+r",
"command": "workbench.action.debug.continue", "command": "workbench.action.debug.continue",
"when": "inDebugMode" "when": "inDebugMode"
}, },
{ {
"key": "shift+ctrl+b", "key": "shift+cmd+b",
"command": "editor.debug.action.toggleBreakpoint", "command": "editor.debug.action.toggleBreakpoint",
"when": "editorTextFocus" "when": "editorTextFocus"
}, },
{ {
"key": "shift+ctrl+t", "key": "shift+cmd+t",
"command": "workbench.action.debug.restart", "command": "workbench.action.debug.restart",
"when": "inDebugMode" "when": "inDebugMode"
}, },
{ {
"key": "ctrl+shift+s", "key": "cmd+shift+s",
"command": "workbench.action.terminal.toggleFindCaseSensitiveTerminalFocus", "command": "workbench.action.terminal.toggleFindCaseSensitiveTerminalFocus",
"when": "terminalFocus" "when": "terminalFocus"
}, },
{ {
"key": "ctrl+shift+s", "key": "cmd+shift+s",
"command": "workbench.action.terminal.toggleFindCaseSensitive", "command": "workbench.action.terminal.toggleFindCaseSensitive",
"when": "terminalFindWidgetFocused" "when": "terminalFindWidgetFocused"
}, },
{ {
"key": "ctrl+shift+s", "key": "cmd+shift+s",
"command": "toggleFindCaseSensitive", "command": "toggleFindCaseSensitive",
"when": "editorFocus" "when": "editorFocus"
}, },
{ {
"key": "ctrl+shift+s", "key": "cmd+shift+s",
"command": "toggleSearchCaseSensitive", "command": "toggleSearchCaseSensitive",
"when": "searchViewletFocus && searchViewletVisible && !fileMatchOrFolderMatchFocus" "when": "searchViewletFocus && searchViewletVisible && !fileMatchOrFolderMatchFocus"
}, },
{ {
"key": "ctrl+shift+w", "key": "cmd+shift+w",
"command": "workbench.action.terminal.toggleFindWholeWordTerminalFocus", "command": "workbench.action.terminal.toggleFindWholeWordTerminalFocus",
"when": "terminalFocus" "when": "terminalFocus"
}, },
{ {
"key": "ctrl+shift+w", "key": "cmd+shift+w",
"command": "workbench.action.terminal.toggleFindWholeWord", "command": "workbench.action.terminal.toggleFindWholeWord",
"when": "terminalFindWidgetFocused" "when": "terminalFindWidgetFocused"
}, },
{ {
"key": "ctrl+shift+w", "key": "cmd+shift+w",
"command": "toggleFindWholeWord", "command": "toggleFindWholeWord",
"when": "editorFocus" "when": "editorFocus"
}, },
{ {
"key": "ctrl+shift+w", "key": "cmd+shift+w",
"command": "toggleSearchWholeWord", "command": "toggleSearchWholeWord",
"when": "searchViewletFocus && searchViewletVisible" "when": "searchViewletFocus && searchViewletVisible"
}, },
{ {
"key": "ctrl+f", "key": "cmd+f",
"command": "workbench.action.terminal.focusFindWidget", "command": "workbench.action.terminal.focusFindWidget",
"when": "terminalFocus" "when": "terminalFocus"
}, },
{ {
"key": "ctrl+f", "key": "cmd+f",
"command": "workbench.action.terminal.focusFindWidget", "command": "workbench.action.terminal.focusFindWidget",
"when": "terminalFindWidgetFocused" "when": "terminalFindWidgetFocused"
}, },
{ {
"key": "ctrl+n", "key": "cmd+n",
"command": "workbench.action.terminal.findNextTerminalFocus", "command": "workbench.action.terminal.findNextTerminalFocus",
"when": "terminalFindWidgetFocused" "when": "terminalFindWidgetFocused"
}, },
{ {
"key": "ctrl+shift+n", "key": "cmd+shift+n",
"command": "workbench.action.terminal.findPreviousTerminalFocus", "command": "workbench.action.terminal.findPreviousTerminalFocus",
"when": "terminalFindWidgetFocused" "when": "terminalFindWidgetFocused"
}, },
{ {
"key": "ctrl+]", "key": "cmd+]",
"command": "workbench.action.nextEditor", "command": "workbench.action.nextEditor",
"when": "editorFocus" "when": "editorFocus"
}, },
{ {
"key": "ctrl+[", "key": "cmd+[",
"command": "workbench.action.previousEditor", "command": "workbench.action.previousEditor",
"when": "editorFocus" "when": "editorFocus"
}, },