add keybindings for mac
This commit is contained in:
parent
24122e2c29
commit
9fb9005c50
|
@ -0,0 +1,387 @@
|
||||||
|
// Place your key bindings in this file to override the defaultsauto[]
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"key": "cmd+-",
|
||||||
|
"command": "editor.fold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+=",
|
||||||
|
"command": "editor.unfoldRecursively",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+-",
|
||||||
|
"command": "editor.foldAll",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+=",
|
||||||
|
"command": "editor.unfoldAll",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+d",
|
||||||
|
"command": "editor.action.revealDefinition",
|
||||||
|
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+w",
|
||||||
|
"command": "workbench.action.closeWindow",
|
||||||
|
"when": "!editorIsOpen && !multipleEditorGroups"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+c",
|
||||||
|
"command": "editor.action.clipboardCopyAction",
|
||||||
|
"when": "textInputFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+x",
|
||||||
|
"command": "editor.action.clipboardCutAction",
|
||||||
|
"when": "textInputFocus && !editorReadonly"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+f",
|
||||||
|
"command": "actions.find"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+n",
|
||||||
|
"command": "editor.action.nextMatchFindAction",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+l",
|
||||||
|
"command": "editor.action.formatSelection",
|
||||||
|
"when": "editorHasDocumentSelectionFormattingProvider && editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+g",
|
||||||
|
"command": "workbench.action.gotoLine"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+/",
|
||||||
|
"command": "editor.action.commentLine",
|
||||||
|
"when": "editorTextFocus && !editorReadonly"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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+[",
|
||||||
|
"command": "workbench.action.navigateBack"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+]",
|
||||||
|
"command": "workbench.action.navigateForward"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+e",
|
||||||
|
"command": "workbench.action.togglePanel",
|
||||||
|
"when": "activePanel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+e",
|
||||||
|
"command": "macros.terminal",
|
||||||
|
"when": "!activePanel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+n",
|
||||||
|
"command": "workbench.action.terminal.findNext",
|
||||||
|
"when": "terminalFocus || terminalFindWidgetFocused"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+n",
|
||||||
|
"command": "workbench.action.terminal.findPrevious",
|
||||||
|
"when": "terminalFocus || terminalFindWidgetFocused"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+t",
|
||||||
|
"command": "workbench.action.terminal.newInActiveWorkspace",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+w",
|
||||||
|
"command": "workbench.action.terminal.kill",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+]",
|
||||||
|
"command": "workbench.action.terminal.focusNext",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+[",
|
||||||
|
"command": "workbench.action.terminal.focusPrevious",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "shift+escape",
|
||||||
|
"command": "search.action.clearSearchResults"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+n",
|
||||||
|
"command": "editor.action.previousMatchFindAction",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+1",
|
||||||
|
"command": "workbench.action.openEditorAtIndex1",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+2",
|
||||||
|
"command": "workbench.action.openEditorAtIndex2",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+3",
|
||||||
|
"command": "workbench.action.openEditorAtIndex3",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+4",
|
||||||
|
"command": "workbench.action.openEditorAtIndex4",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+5",
|
||||||
|
"command": "workbench.action.openEditorAtIndex5",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+6",
|
||||||
|
"command": "workbench.action.openEditorAtIndex6",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+7",
|
||||||
|
"command": "workbench.action.openEditorAtIndex7",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+8",
|
||||||
|
"command": "workbench.action.openEditorAtIndex8",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+9",
|
||||||
|
"command": "workbench.action.openEditorAtIndex9",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+0",
|
||||||
|
"command": "workbench.action.lastEditorInGroup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+t",
|
||||||
|
"command": "workbench.action.debug.stop",
|
||||||
|
"when": "inDebugMode && !terminalFocus && editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+r",
|
||||||
|
"command": "workbench.action.debug.start",
|
||||||
|
"when": "!inDebugMode && !terminalFocus && editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+s",
|
||||||
|
"command": "workbench.action.debug.stepOver",
|
||||||
|
"when": "inDebugMode && !terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+r",
|
||||||
|
"command": "workbench.action.debug.continue",
|
||||||
|
"when": "inDebugMode"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+b",
|
||||||
|
"command": "editor.debug.action.toggleBreakpoint",
|
||||||
|
"when": "editorTextFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+t",
|
||||||
|
"command": "workbench.action.debug.restart",
|
||||||
|
"when": "inDebugMode"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+c",
|
||||||
|
"command": "workbench.action.terminal.toggleFindCaseSensitive",
|
||||||
|
"when": "terminalFocus || terminalFindWidgetFocused"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+c",
|
||||||
|
"command": "toggleFindCaseSensitive",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+c",
|
||||||
|
"command": "toggleSearchCaseSensitive",
|
||||||
|
"when": "searchViewletFocus && searchViewletVisible && !fileMatchOrFolderMatchFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+d",
|
||||||
|
"command": "workbench.action.terminal.toggleFindWholeWord",
|
||||||
|
"when": "terminalFocus || terminalFindWidgetFocused"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+d",
|
||||||
|
"command": "toggleFindWholeWord",
|
||||||
|
"when": "editorFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+d",
|
||||||
|
"command": "toggleSearchWholeWord",
|
||||||
|
"when": "searchViewletFocus && searchViewletVisible"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+f",
|
||||||
|
"command": "workbench.action.terminal.focusFind",
|
||||||
|
"when": "terminalFocus || terminalFindWidgetFocused"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+]",
|
||||||
|
"command": "workbench.action.nextEditor",
|
||||||
|
"when": "!terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+[",
|
||||||
|
"command": "workbench.action.previousEditor",
|
||||||
|
"when": "!terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+1",
|
||||||
|
"command": "workbench.action.terminal.focusAtIndex1",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+2",
|
||||||
|
"command": "workbench.action.terminal.focusAtIndex2",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+3",
|
||||||
|
"command": "workbench.action.terminal.focusAtIndex3",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+4",
|
||||||
|
"command": "workbench.action.terminal.focusAtIndex4",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+5",
|
||||||
|
"command": "workbench.action.terminal.focusAtIndex5",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+6",
|
||||||
|
"command": "workbench.action.terminal.focusAtIndex6",
|
||||||
|
"when": "terminalFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+e",
|
||||||
|
"command": "workbench.files.action.focusOpenEditorsView",
|
||||||
|
"when": "workbench.explorer.openEditorsView.active"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+o",
|
||||||
|
"command": "sshHosts.focus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+y",
|
||||||
|
"command": "gitlens.views.repositories:gitlens.focus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+d",
|
||||||
|
"command": "-workbench.view.debug"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+g",
|
||||||
|
"command": "workbench.view.debug"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+u",
|
||||||
|
"command": "workbench.view.scm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+.",
|
||||||
|
"command": "workbench.action.toggleStatusbarVisibility"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+m",
|
||||||
|
"command": "macros.bar"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+w",
|
||||||
|
"command": "workbench.action.quickSwitchWindow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+shift+k",
|
||||||
|
"command": "-editor.action.deleteLines",
|
||||||
|
"when": "textInputFocus && !editorReadonly"
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue