Update keybindings.json

This commit is contained in:
lianghongkey 2019-08-20 19:18:47 +08:00 committed by GitHub
parent de8c951305
commit fa9c6bfc78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 95 additions and 55 deletions

View File

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