|
// 将键绑定放入此文件中以覆盖默认值 |
|
[ |
|
{ |
|
"key": "shift+cmd+l", |
|
"command": "-editor.action.selectHighlights", |
|
"when": "editorFocus" |
|
}, |
|
{ |
|
"key": "shift+cmd+l", |
|
"command": "-editor.action.insertCursorAtEndOfEachLineSelected", |
|
"when": "editorTextFocus" |
|
}, |
|
{ |
|
"key": "shift+cmd+l", |
|
"command": "editor.action.formatDocument", |
|
"when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly" |
|
}, |
|
{ |
|
"key": "shift+alt+f", |
|
"command": "-editor.action.formatDocument", |
|
"when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly" |
|
}, |
|
{ |
|
"key": "f3", |
|
"command": "-workbench.action.terminal.findNextTerminalFocus", |
|
"when": "terminalFocus" |
|
}, |
|
{ |
|
"key": "f3", |
|
"command": "-editor.action.nextMatchFindAction", |
|
"when": "editorFocus" |
|
}, |
|
{ |
|
"key": "f3", |
|
"command": "-workbench.action.terminal.findNext", |
|
"when": "terminalFindWidgetFocused" |
|
}, |
|
{ |
|
"key": "f3", |
|
"command": "editor.action.revealDefinition", |
|
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" |
|
}, |
|
{ |
|
"key": "cmd+f3", |
|
"command": "editor.action.peekDefinition", |
|
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" |
|
}, |
|
{ |
|
"key": "alt+f12", |
|
"command": "-editor.action.peekDefinition", |
|
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" |
|
}, |
|
{ |
|
"key": "shift+cmd+g", |
|
"command": "-workbench.action.terminal.findPrevious", |
|
"when": "terminalFindWidgetFocused" |
|
}, |
|
{ |
|
"key": "shift+cmd+g", |
|
"command": "-workbench.action.terminal.findPreviousTerminalFocus", |
|
"when": "terminalFocus" |
|
}, |
|
{ |
|
"key": "shift+cmd+g", |
|
"command": "-editor.action.previousMatchFindAction", |
|
"when": "editorFocus" |
|
}, |
|
{ |
|
"key": "shift+cmd+g", |
|
"command": "references-view.find", |
|
"when": "editorHasReferenceProvider" |
|
}, |
|
{ |
|
"key": "shift+alt+f12", |
|
"command": "-references-view.find", |
|
"when": "editorHasReferenceProvider" |
|
}, |
|
{ |
|
"key": "shift+f6", |
|
"command": "editor.action.rename", |
|
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" |
|
}, |
|
{ |
|
"key": "shift+f6", |
|
"command": "move-ts.move", |
|
"when": "sideBarFocus" |
|
}, |
|
{ |
|
"key": "f2", |
|
"command": "-editor.action.rename", |
|
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" |
|
}, |
|
{ |
|
"key": "shift+alt+o", |
|
"command": "-editor.action.organizeImports", |
|
"when": "editorTextFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)source\\.organizeImports\\b/" |
|
}, |
|
{ |
|
"key": "ctrl+alt+o", |
|
"command": "-typescriptHero.imports.organize", |
|
"when": "editorTextFocus" |
|
}, |
|
{ |
|
"key": "shift+cmd+o", |
|
"command": "typescriptHero.imports.organize" |
|
}, |
|
{ |
|
"key": "shift+f6", |
|
"command": "move-ts.move" |
|
}, |
|
{ |
|
"key": "ctrl+1", |
|
"command": "workbench.action.openTipsAndTricksUrl" |
|
}, |
|
{ |
|
"key": "ctrl+1", |
|
"command": "editor.action.triggerSuggest", |
|
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly" |
|
}, |
|
] |