Last active
          September 12, 2025 17:24 
        
      - 
      
 - 
        
Save ricmarinovic/c146aa5bba177309b966476eb60c0bec to your computer and use it in GitHub Desktop.  
    New vscode keybindings 2025
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // MAC KEYBINDINGS | |
| [ | |
| // ## Unbind keys ========================================================== | |
| // cmd --------------------------------------------------------------------- | |
| { | |
| // don't hide the window | |
| "key": "cmd+h", | |
| "command": "noop" | |
| }, | |
| { | |
| "key": "cmd+o", | |
| "command": "noop" | |
| }, | |
| { | |
| "key": "cmd+shift+o", | |
| "command": "noop" | |
| }, | |
| { | |
| "key": "cmd+b", | |
| "command": "-workbench.action.toggleSidebarVisibility" | |
| }, | |
| { | |
| "key": "cmd+k cmd+w", | |
| "command": "-workbench.action.closeAllEditors" | |
| }, | |
| { | |
| "key": "cmd+k w", | |
| "command": "-workbench.action.closeEditorsInGroup" | |
| }, | |
| { | |
| "key": "cmd+k o", | |
| "command": "-workbench.action.files.showOpenedFileInNewWindow" | |
| }, | |
| { | |
| "key": "cmd+\\", | |
| "command": "-workbench.action.splitEditor" | |
| }, | |
| { | |
| "key": "cmd+.", | |
| "command": "-editor.action.quickFix", | |
| "when": "editorHasCodeActionsProvider && textInputFocus && !editorReadonly" | |
| }, | |
| // ctrl ------------------------------------------------------------------- | |
| { | |
| "key": "ctrl+o", | |
| "command": "-lineBreakInsert", | |
| "when": "textInputFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+q", | |
| "command": "noop" | |
| }, | |
| { | |
| "key": "ctrl+c", | |
| "command": "-editor.action.clipboardCopyAction", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+v", | |
| "command": "-editor.action.clipboardPasteAction", | |
| "when": "textInputFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "-workbench.action.files.newUntitledFile" | |
| }, | |
| { | |
| "key": "ctrl+p", | |
| "command": "-workbench.action.quickOpenNavigateNextInFilePicker", | |
| "when": "inFilesPicker && inQuickOpen" | |
| }, | |
| { | |
| "key": "ctrl+j", | |
| "command": "-workbench.action.togglePanel" | |
| }, | |
| { | |
| "key": "ctrl+w", | |
| "command": "-workbench.action.closeGroup", | |
| "when": "activeEditorGroupEmpty && multipleEditorGroups" | |
| }, | |
| { | |
| "key": "ctrl+j", | |
| "command": "-editor.action.joinLines", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+k", | |
| "command": "-deleteAllRight", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+h", | |
| "command": "-deleteLeft", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // alt -------------------------------------------------------------- | |
| { | |
| "key": "alt+z", | |
| "command": "-editor.action.toggleWordWrap" | |
| }, | |
| { | |
| "key": "alt+c", | |
| "command": "-gitlens.showQuickCommitFileDetails", | |
| "when": "editorTextFocus && gitlens:enabled" | |
| }, | |
| // others ------------------------------------------------------------ | |
| { | |
| "key": "alt+cmd+j", | |
| "command": "-liveshare.join", | |
| "when": "liveshare:state != 'Joined' && liveshare:state != 'Shared'" | |
| }, | |
| { | |
| "key": "alt+cmd+left", | |
| "command": "-workbench.action.previousEditor" | |
| }, | |
| { | |
| "key": "alt+cmd+right", | |
| "command": "-workbench.action.nextEditor" | |
| }, | |
| { | |
| "key": "ctrl+cmd+left", | |
| "command": "-workbench.action.moveEditorToPreviousGroup" | |
| }, | |
| { | |
| "key": "ctrl+cmd+right", | |
| "command": "-workbench.action.moveEditorToNextGroup" | |
| }, | |
| { | |
| "key": "shift+cmd+h", | |
| "command": "-workbench.action.replaceInFiles" | |
| }, | |
| { | |
| "key": "cmd+shift+n", | |
| "command": "-workbench.action.newWindow" | |
| }, | |
| // ## Movement --------------------------------------------------------------- | |
| // Move cursor up | |
| { | |
| "key": "ctrl+p", | |
| "command": "cursorUp", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+p", | |
| "command": "showPrevParameterHint", | |
| "when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible" | |
| }, | |
| { | |
| "key": "ctrl+p", | |
| "command": "selectPrevSuggestion", | |
| "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion" | |
| }, | |
| { | |
| "key": "ctrl+p", | |
| "command": "list.focusUp", | |
| "when": "listFocus && !inputFocus && !treestickyScrollFocused" | |
| }, | |
| { | |
| "key": "ctrl+p", | |
| "command": "workbench.action.quickOpenSelectPrevious", | |
| "when": "inQuickOpen" | |
| }, | |
| { | |
| "key": "ctrl+p", | |
| "command": "selectPrevCodeAction", | |
| "when": "codeActionMenuVisible" | |
| }, | |
| { | |
| "key": "ctrl+p", | |
| "command": "focusPreviousRenameSuggestion", | |
| "when": "renameInputVisible" | |
| }, | |
| { | |
| "key": "ctrl+p", | |
| "command": "history.showPrevious", | |
| "when": "historyNavigationBackwardsEnabled && historyNavigationWidgetFocus && !isComposing && !suggestWidgetVisible" | |
| }, | |
| // Move cursor down | |
| { | |
| "key": "ctrl+n", | |
| "command": "cursorDown", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "showNextParameterHint", | |
| "when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "selectNextSuggestion", | |
| "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "list.focusDown", | |
| "when": "listFocus && !inputFocus && !treestickyScrollFocused" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "workbench.action.quickOpenSelectNext", | |
| "when": "inQuickOpen" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "selectNextCodeAction", | |
| "when": "codeActionMenuVisible" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "focusNextRenameSuggestion", | |
| "when": "renameInputVisible" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "history.showNext", | |
| "when": "historyNavigationForwardsEnabled && historyNavigationWidgetFocus && !isComposing && !suggestWidgetVisible" | |
| }, | |
| // Move cursor left | |
| { | |
| "key": "ctrl+b", | |
| "command": "cursorLeft", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+b", | |
| "command": "breadcrumbs.focusPrevious", | |
| "when": "breadcrumbsActive && breadcrumbsVisible" | |
| }, | |
| { | |
| "key": "ctrl+b", | |
| "command": "list.collapse", | |
| "when": "listFocus && !inputFocus" | |
| }, | |
| { | |
| "key": "ctrl+b", | |
| "command": "notification.collapse", | |
| "when": "notificationFocus" | |
| }, | |
| // Move cursor right | |
| { | |
| "key": "ctrl+f", | |
| "command": "cursorRight", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+f", | |
| "command": "breadcrumbs.focusNext", | |
| "when": "breadcrumbsActive && breadcrumbsVisible" | |
| }, | |
| { | |
| "key": "ctrl+f", | |
| "command": "list.expand", | |
| "when": "listFocus && !inputFocus" | |
| }, | |
| { | |
| "key": "ctrl+f", | |
| "command": "notification.expand", | |
| "when": "notificationFocus" | |
| }, | |
| // Move cursor page up | |
| { | |
| "key": "ctrl+u", | |
| "command": "cursorPageUp", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+u", | |
| "command": "selectPrevPageSuggestion", | |
| "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible" | |
| }, | |
| { | |
| "key": "ctrl+u", | |
| "command": "list.focusPageUp", | |
| "when": "listFocus && !inputFocus" | |
| }, | |
| // Move cursor page down | |
| { | |
| "key": "ctrl+d", | |
| "command": "cursorPageDown", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+d", | |
| "command": "selectNextPageSuggestion", | |
| "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible" | |
| }, | |
| { | |
| "key": "ctrl+d", | |
| "command": "list.focusPageDown", | |
| "when": "listFocus && !inputFocus" | |
| }, | |
| // Move cursor to start of word | |
| { | |
| "key": "ctrl+h", | |
| "command": "cursorWordStartLeft", | |
| "when": "textInputFocus" | |
| }, | |
| // Move cursor to end of word | |
| { | |
| "key": "ctrl+l", | |
| "command": "cursorWordEndRight", | |
| "when": "textInputFocus" | |
| }, | |
| // Move cursor to previous of word part | |
| { | |
| "key": "ctrl+alt+h", | |
| "command": "cursorWordPartStartLeft", | |
| "when": "textInputFocus" | |
| }, | |
| // Move cursor to next of word part | |
| { | |
| "key": "ctrl+alt+l", | |
| "command": "cursorWordPartRight", | |
| "when": "textInputFocus" | |
| }, | |
| // Move cursor to start of line | |
| { | |
| "key": "ctrl+a", | |
| "command": "cursorHome", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "cmd+left", | |
| "command": "cursorHome", | |
| "when": "editorTextFocus" | |
| }, | |
| // Move cursor to end of line | |
| { | |
| "key": "ctrl+e", | |
| "command": "cursorEnd", | |
| "when": "textInputFocus" | |
| }, | |
| { | |
| "key": "cmd+right", | |
| "command": "cursorEnd", | |
| "when": "editorTextFocus" | |
| }, | |
| // Move cursor to top of file | |
| { | |
| "key": "cmd+up", | |
| "command": "cursorTop", | |
| "when": "textInputFocus" | |
| }, | |
| // Move cursor to bottom of file | |
| // { | |
| // "key": "cmd+down", | |
| // "command": "cursorBottom", | |
| // "when": "textInputFocus" | |
| // }, | |
| // Scroll line up | |
| { | |
| "key": "ctrl+k", | |
| "command": "scrollLineUp", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+k", | |
| "command": "workbench.action.terminal.scrollUp", | |
| "when": "terminalFocus" | |
| }, | |
| // Scroll line down | |
| { | |
| "key": "ctrl+j", | |
| "command": "scrollLineDown", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+j", | |
| "command": "workbench.action.terminal.scrollDown", | |
| "when": "terminalFocus" | |
| }, | |
| // Scroll page up | |
| { | |
| "key": "ctrl+shift+k", | |
| "command": "scrollPageUp", | |
| "when": "editorTextFocus" | |
| }, | |
| // Scroll page down | |
| { | |
| "key": "ctrl+shift+j", | |
| "command": "scrollPageDown", | |
| "when": "editorTextFocus" | |
| }, | |
| // Go to matching bracket | |
| { | |
| "key": "ctrl+\\", | |
| "command": "editor.action.jumpToBracket", | |
| "when": "editorTextFocus" | |
| }, | |
| // Go back | |
| { | |
| "key": "ctrl+[", | |
| "command": "workbench.action.navigateBack", | |
| "when": "editorTextFocus" | |
| }, | |
| // Go forward | |
| { | |
| "key": "ctrl+]", | |
| "command": "workbench.action.navigateForward", | |
| "when": "editorTextFocus" | |
| }, | |
| // Go to previous problem | |
| { | |
| "key": "ctrl+shift+.", | |
| "command": "editor.action.marker.prev", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "cmd+ctrl+shift+.", | |
| "command": "editor.action.marker.prevInFiles", | |
| "when": "editorFocus" | |
| }, | |
| // Go to next problem | |
| { | |
| "key": "ctrl+.", | |
| "command": "editor.action.marker.next", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "cmd+ctrl+.", | |
| "command": "editor.action.marker.nextInFiles", | |
| "when": "editorFocus" | |
| }, | |
| // Go to previous change | |
| { | |
| "key": "ctrl+shift+'", | |
| "command": "workbench.action.compareEditor.previousChange", | |
| "when": "textCompareEditorVisible" | |
| }, | |
| { | |
| "key": "ctrl+shift+'", | |
| "command": "workbench.action.editor.previousChange", | |
| "when": "editorTextFocus && !textCompareEditorActive && quickDiffDecorationCount != '0'" | |
| }, | |
| { | |
| "key": "ctrl+shift+'", | |
| "command": "editor.action.dirtydiff.previous", | |
| "when": "editorTextFocus && !textCompareEditorActive" | |
| }, | |
| // Go to next change | |
| { | |
| "key": "ctrl+'", | |
| "command": "workbench.action.compareEditor.nextChange", | |
| "when": "textCompareEditorVisible" | |
| }, | |
| { | |
| "key": "ctrl+'", | |
| "command": "workbench.action.editor.nextChange", | |
| "when": "editorTextFocus && !textCompareEditorActive && quickDiffDecorationCount != '0'" | |
| }, | |
| { | |
| "key": "ctrl+'", | |
| "command": "editor.action.dirtydiff.next", | |
| "when": "editorTextFocus && !textCompareEditorActive" | |
| }, | |
| // ## Selection ------------------------------------------------------- | |
| // Select up | |
| { | |
| "key": "ctrl+shift+p", | |
| "command": "cursorUpSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select down | |
| { | |
| "key": "ctrl+shift+n", | |
| "command": "cursorDownSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select previous character | |
| { | |
| "key": "ctrl+shift+b", | |
| "command": "cursorLeftSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select next character | |
| { | |
| "key": "ctrl+shift+f", | |
| "command": "cursorRightSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select page up | |
| { | |
| "key": "ctrl+shift+u", | |
| "command": "cursorPageUpSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select page down | |
| { | |
| "key": "ctrl+shift+d", | |
| "command": "cursorPageDownSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select to start of word | |
| { | |
| "key": "ctrl+shift+h", | |
| "command": "cursorWordStartLeftSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select to end of word | |
| { | |
| "key": "ctrl+shift+l", | |
| "command": "cursorWordEndRightSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select to previous word part | |
| { | |
| "key": "ctrl+shift+alt+h", | |
| "command": "cursorWordPartStartLeftSelect", | |
| "when": "textInputFocus" | |
| }, | |
| // Select to next word part | |
| { | |
| "key": "ctrl+shift+alt+l", | |
| "command": "cursorWordPartRightSelect", | |
| "when": "textInputFocus" | |
| }, | |
| // Select to start of line | |
| { | |
| "key": "ctrl+shift+a", | |
| "command": "cursorHomeSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+shift+left", | |
| "command": "cursorHomeSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select to end of line | |
| { | |
| "key": "ctrl+shift+e", | |
| "command": "cursorEndSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+shift+right", | |
| "command": "cursorEndSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select to start of file | |
| { | |
| "key": "cmd+shift+up", | |
| "command": "cursorTopSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select to end of file | |
| { | |
| "key": "cmd+shift+down", | |
| "command": "cursorBottomSelect", | |
| "when": "editorTextFocus" | |
| }, | |
| // Select all lines | |
| { | |
| "key": "cmd+a", | |
| "command": "editor.action.selectAll" | |
| }, | |
| { | |
| "key": "cmd+a", | |
| "command": "workbench.action.terminal.selectAll", | |
| "when": "terminalFocus" | |
| }, | |
| // Select word | |
| { | |
| "key": "cmd+d", | |
| "command": "editor.action.addSelectionToNextFindMatch", | |
| "when": "editorFocus" | |
| }, | |
| // Select all occurrences of word | |
| { | |
| "key": "cmd+shift+d", | |
| "command": "editor.action.changeAll", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "cmd+shift+d", | |
| "command": "editor.action.selectHighlights", | |
| "when": "editorFocus" | |
| }, | |
| // Select to bracket | |
| { | |
| "key": "ctrl+shift+\\", | |
| "command": "editor.action.selectToBracket" | |
| }, | |
| // Expand selection | |
| { | |
| "key": "ctrl+shift+]", | |
| "command": "editor.action.smartSelect.expand", | |
| "when": "editorTextFocus" | |
| }, | |
| // Shrink selection | |
| { | |
| "key": "ctrl+shift+[", | |
| "command": "editor.action.smartSelect.shrink", | |
| "when": "editorTextFocus" | |
| }, | |
| // Cancel selection | |
| { | |
| "key": "ctrl+;", | |
| "command": "cancelSelection", | |
| "when": "editorHasSelection && textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+shift+;", | |
| "command": "cancelSelection", | |
| "when": "editorHasSelection && textInputFocus" | |
| }, | |
| // ## Multiple cursors ------------------------------------------------- | |
| // Insert cursor up | |
| { | |
| "key": "cmd+alt+p", | |
| "command": "editor.action.insertCursorAbove", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+up", | |
| "command": "editor.action.insertCursorAbove", | |
| "when": "editorTextFocus" | |
| }, | |
| // Insert cursor down | |
| { | |
| "key": "cmd+alt+n", | |
| "command": "editor.action.insertCursorBelow", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+down", | |
| "command": "editor.action.insertCursorBelow", | |
| "when": "editorTextFocus" | |
| }, | |
| // Insert cursor end of selected lines | |
| { | |
| "key": "cmd+alt+l", | |
| "command": "editor.action.insertCursorAtEndOfEachLineSelected", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+left", | |
| "command": "cursorLeft", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+right", | |
| "command": "cursorRight", | |
| "when": "editorTextFocus" | |
| }, | |
| // Focus next cursor | |
| { | |
| "key": "cmd+alt+]", | |
| "command": "editor.action.focusNextCursor" | |
| }, | |
| // Focus previous cursor | |
| { | |
| "key": "cmd+alt+[", | |
| "command": "editor.action.focusPreviousCursor" | |
| }, | |
| // Column select up | |
| { | |
| "key": "cmd+alt+shift+p", | |
| "command": "cursorColumnSelectUp", | |
| "when": "editorTextFocus" | |
| }, | |
| // Column select down | |
| { | |
| "key": "cmd+alt+shift+n", | |
| "command": "cursorColumnSelectDown", | |
| "when": "editorTextFocus" | |
| }, | |
| // Column select left | |
| { | |
| "key": "cmd+alt+shift+h", | |
| "command": "cursorColumnSelectLeft", | |
| "when": "editorTextFocus" | |
| }, | |
| // Column select right | |
| { | |
| "key": "cmd+alt+shift+l", | |
| "command": "cursorColumnSelectRight", | |
| "when": "editorTextFocus" | |
| }, | |
| // Remove secondary cursors | |
| { | |
| "key": "ctrl+,", | |
| "command": "removeSecondaryCursors", | |
| "when": "editorHasMultipleSelections && textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+alt+,", | |
| "command": "removeSecondaryCursors", | |
| "when": "editorHasMultipleSelections && textInputFocus" | |
| }, | |
| { | |
| "key": "ctrl+alt+shift+,", | |
| "command": "removeSecondaryCursors", | |
| "when": "editorHasMultipleSelections && textInputFocus" | |
| }, | |
| // ## Deletion ------------------------------------------------------------- | |
| // Delete line | |
| { | |
| "key": "shift+cmd+k", | |
| "command": "editor.action.deleteLines", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Delete to start of word | |
| { | |
| "key": "alt+backspace", | |
| "command": "deleteWordLeft", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "alt+backspace", | |
| "command": "workbench.action.terminal.deleteWordLeft", | |
| "when": "terminalFocus" | |
| }, | |
| // Delete to end of word | |
| { | |
| "key": "alt+delete", | |
| "command": "deleteWordRight", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "alt+delete", | |
| "command": "workbench.action.terminal.deleteWordRight", | |
| "when": "terminalFocus" | |
| }, | |
| // Delete to previous word part | |
| { | |
| "key": "ctrl+alt+backspace", | |
| "command": "deleteWordPartLeft", | |
| "when": "textInputFocus && !editorReadonly" | |
| }, | |
| // Delete to next word part | |
| { | |
| "key": "ctrl+alt+delete", | |
| "command": "deleteWordPartRight", | |
| "when": "textInputFocus && !editorReadonly" | |
| }, | |
| // Delete to start of line | |
| { | |
| "key": "cmd+backspace", | |
| "command": "deleteAllLeft", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Delete to end of line | |
| { | |
| "key": "cmd+delete", | |
| "command": "deleteAllRight", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // ## Editing ------------------------------------------------------------- | |
| // Insert line up | |
| { | |
| "key": "cmd+shift+enter", | |
| "command": "editor.action.insertLineBefore", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Insert line down | |
| { | |
| "key": "cmd+enter", | |
| "command": "editor.action.insertLineAfter", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Join lines | |
| { | |
| "key": "cmd+j", | |
| "command": "editor.action.joinLines", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Move line up | |
| { | |
| "key": "cmd+ctrl+p", | |
| "command": "editor.action.moveLinesUpAction", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Move line down | |
| { | |
| "key": "cmd+ctrl+n", | |
| "command": "editor.action.moveLinesDownAction", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Copy line up | |
| { | |
| "key": "cmd+ctrl+shift+p", | |
| "command": "editor.action.copyLinesUpAction", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Copy line down | |
| { | |
| "key": "cmd+ctrl+shift+n", | |
| "command": "editor.action.copyLinesDownAction", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Copy selection | |
| { | |
| "key": "cmd+c", | |
| "command": "editor.action.clipboardCopyAction" | |
| }, | |
| { | |
| "key": "cmd+c", | |
| "command": "keybindings.editor.copyKeybindingEntry", | |
| "when": "inKeybindings && keybindingFocus" | |
| }, | |
| { | |
| "key": "cmd+c", | |
| "command": "workbench.action.terminal.copySelection", | |
| "when": "terminalFocus && termincmdextSelected" | |
| }, | |
| { | |
| "key": "cmd+c", | |
| "command": "problems.action.copy", | |
| "when": "problemFocus" | |
| }, | |
| { | |
| "key": "cmd+c", | |
| "command": "filesExplorer.copy", | |
| "when": "explorerViewletVisible && filesExplorerFocus" | |
| }, | |
| // Cut selection | |
| { | |
| "key": "cmd+x", | |
| "command": "editor.action.clipboardCutAction", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "cmd+x", | |
| "command": "editor.action.clipboardCopyAction", | |
| "when": "editorTextFocus && editorReadonly" | |
| }, | |
| // Paste | |
| { | |
| "key": "cmd+v", | |
| "command": "editor.action.clipboardPasteAction", | |
| }, | |
| { | |
| "key": "cmd+v", | |
| "command": "filesExplorer.paste", | |
| "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" | |
| }, | |
| // Undo | |
| { | |
| "key": "cmd+z", | |
| "command": "undo", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Redo | |
| { | |
| "key": "cmd+y", | |
| "command": "redo", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Indent line | |
| { | |
| "key": "cmd+]", | |
| "command": "editor.action.indentLines", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Outdent line | |
| { | |
| "key": "cmd+[", | |
| "command": "editor.action.outdentLines", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Comment line toggle | |
| { | |
| "key": "cmd+/", | |
| "command": "editor.action.commentLine", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Comment block toggle | |
| { | |
| "key": "cmd+shift+/", | |
| "command": "editor.action.blockComment", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // ## Searching ------------------------------------------------------ | |
| // Find | |
| { | |
| "key": "cmd+f", | |
| "command": "actions.find" | |
| }, | |
| { | |
| "key": "cmd+f", | |
| "command": "repl.action.filter", | |
| "when": "inDebugRepl && textInputFocus" | |
| }, | |
| { | |
| "key": "cmd+f", | |
| "command": "workbench.action.terminal.focusFindWidget", | |
| "when": "terminalFindWidgetFocused" | |
| }, | |
| { | |
| "key": "cmd+f", | |
| "command": "workbench.action.terminal.focusFindWidget", | |
| "when": "terminalFocus" | |
| }, | |
| { | |
| "key": "cmd+f", | |
| "command": "editor.action.extensioneditor.showfind", | |
| "when": "!editorFocus && activeEditor == 'workbench.editor.extension'" | |
| }, | |
| { | |
| "key": "cmd+f", | |
| "command": "editor.action.webvieweditor.showFind", | |
| "when": "!editorFocus && activeEditor == 'WebviewEditor'" | |
| }, | |
| { | |
| "key": "cmd+f", | |
| "command": "keybindings.editor.searchKeybindings", | |
| "when": "inKeybindings" | |
| }, | |
| { | |
| "key": "cmd+f", | |
| "command": "problems.action.focusFilter", | |
| "when": "problemsViewFocus" | |
| }, | |
| { | |
| "key": "cmd+f", | |
| "command": "settings.action.search", | |
| "when": "inSettingsEditor" | |
| }, | |
| { | |
| "key": "cmd+f", | |
| "command": "list.toggleKeyboardNavigation", | |
| "when": "filesExplorerFocus" | |
| }, | |
| { | |
| "key": "cmd+f", | |
| "command": "list.find", | |
| "when": "listFocus && listSupportsFind" | |
| }, | |
| { | |
| "key": "cmd+f", | |
| "command": "workbench.action.terminal.focusFind", | |
| "when": "terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocusInAny && terminalHasBeenCreated || terminalFocusInAny && terminalProcessSupported" | |
| }, | |
| { | |
| "key": "enter", | |
| "command": "workbench.action.focusActiveEditorGroup", | |
| "when": "findInputFocussed" | |
| }, | |
| // Find in files | |
| { | |
| "key": "shift+cmd+f", | |
| "command": "workbench.action.findInFiles", | |
| "when": "!searchInputBoxFocus" | |
| }, | |
| // Find next | |
| { | |
| "key": "cmd+g", | |
| "command": "editor.action.nextMatchFindAction", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "cmd+g", | |
| "command": "workbench.action.terminal.findNext", | |
| "when": "terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocusInAny && terminalHasBeenCreated || terminalFocusInAny && terminalProcessSupported" | |
| }, | |
| { | |
| "key": "cmd+g", | |
| "command": "workbench.action.terminal.goToRecentDirectory", | |
| "when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported" | |
| }, | |
| // Find previous | |
| { | |
| "key": "shift+cmd+g", | |
| "command": "editor.action.previousMatchFindAction", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "shift+cmd+g", | |
| "command": "workbench.action.terminal.findPrevious", | |
| "when": "terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocusInAny && terminalHasBeenCreated || terminalFocusInAny && terminalProcessSupported" | |
| }, | |
| { | |
| "key": "shift+cmd+g", | |
| "command": "workbench.action.terminal.openDetectedLink", | |
| "when": "accessibleViewIsShown && terminalHasBeenCreated && accessibleViewCurrentProviderId == 'terminal'" | |
| }, | |
| // Replace | |
| { | |
| "key": "cmd+r", | |
| "command": "editor.action.startFindReplaceAction", | |
| "when": "editorFocus" | |
| }, | |
| // Replace in files | |
| { | |
| "key": "shift+cmd+r", | |
| "command": "workbench.action.replaceInFiles" | |
| }, | |
| // Previous search result | |
| { | |
| "key": "cmd+shift+h", | |
| "command": "search.action.focusPreviousSearchResult", | |
| "when": "hasSearchResult || inSearchEditor" | |
| }, | |
| // Next search result | |
| { | |
| "key": "cmd+h", | |
| "command": "search.action.focusNextSearchResult", | |
| "when": "hasSearchResult || inSearchEditor" | |
| }, | |
| // Previous reference result | |
| { | |
| "key": "ctrl+shift+'", | |
| "command": "references-view.prev", | |
| "when": "reference-list.hasResult && references-view.canNavigate" | |
| }, | |
| { | |
| "key": "ctrl+shift+'", | |
| "command": "goToPreviousReference", | |
| "when": "inReferenceSearchEditor || referenceSearchVisible" | |
| }, | |
| // Next reference result | |
| { | |
| "key": "ctrl+'", | |
| "command": "references-view.next", | |
| "when": "reference-list.hasResult && references-view.canNavigate" | |
| }, | |
| { | |
| "key": "ctrl+'", | |
| "command": "goToNextReference", | |
| "when": "inReferenceSearchEditor || referenceSearchVisible" | |
| }, | |
| // Toggle case sensitive | |
| { | |
| "key": "cmd+alt+c", | |
| "command": "toggleFindCaseSensitive", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+c", | |
| "command": "toggleSearchCaseSensitive", | |
| "when": "searchViewletFocus && !fileMatchOrFolderMatchFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+c", | |
| "command": "toggleSearchEditorCaseSensitive", | |
| "when": "inSearchEditor && searchInputBoxFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+c", | |
| "command": "workbench.action.terminal.toggleFindCaseSensitive", | |
| "when": "terminalFindVisible && terminalHasBeenCreated || terminalFindVisible && terminalProcessSupported" | |
| }, | |
| // Toggle whole word | |
| { | |
| "key": "cmd+alt+w", | |
| "command": "toggleFindWholeWord", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+w", | |
| "command": "toggleSearchEditorWholeWord", | |
| "when": "inSearchEditor && searchInputBoxFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+w", | |
| "command": "toggleSearchWholeWord", | |
| "when": "searchViewletFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+w", | |
| "command": "workbench.action.terminal.toggleFindWholeWord", | |
| "when": "terminalFindVisible && terminalHasBeenCreated || terminalFindVisible && terminalProcessSupported" | |
| }, | |
| // Toggle regular expression | |
| { | |
| "key": "cmd+alt+r", | |
| "command": "toggleFindRegex", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+r", | |
| "command": "toggleSearchEditorRegex", | |
| "when": "inSearchEditor && searchInputBoxFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+r", | |
| "command": "toggleSearchRegex", | |
| "when": "searchViewletFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+r", | |
| "command": "workbench.action.terminal.toggleFindRegex", | |
| "when": "terminalFindVisible && terminalHasBeenCreated || terminalFindVisible && terminalProcessSupported" | |
| }, | |
| // Toggle find in selection | |
| { | |
| "key": "cmd+alt+l", | |
| "command": "toggleFindInSelection", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "cmd+alt+l", | |
| "command": "toggleSearchEditorContextLines", | |
| "when": "inSearchEditor" | |
| }, | |
| // Toggle preserve case | |
| { | |
| "key": "cmd+alt+p", | |
| "command": "toggleSearchPreserveCase", | |
| "when": "searchViewletFocus" | |
| }, | |
| // ## Management --------------------------------------------------------- | |
| // Show all commands | |
| { | |
| "key": "cmd+shift+p", | |
| "command": "workbench.action.showCommands" | |
| }, | |
| // Open file | |
| { | |
| "key": "cmd+p", | |
| "command": "workbench.action.quickOpen" | |
| }, | |
| // New file | |
| { | |
| "key": "cmd+n", | |
| "command": "workbench.action.files.newUntitledFile", | |
| "when": "!filesExplorerFocus" | |
| }, | |
| // Save | |
| { | |
| "key": "cmd+s", | |
| "command": "workbench.action.files.save" | |
| }, | |
| // Save all | |
| { | |
| "key": "cmd+shift+s", | |
| "command": "workbench.action.files.saveAll" | |
| }, | |
| // Close editor | |
| { | |
| "key": "cmd+w", | |
| "command": "workbench.action.closeActiveEditor" | |
| }, | |
| { | |
| "key": "cmd+w", | |
| // close the group when it's the last one open | |
| "command": "workbench.action.closeGroup", | |
| "when": "activeEditorGroupEmpty && multipleEditorGroups" | |
| }, | |
| { | |
| "key": "cmd+w", | |
| "command": "workbench.action.closeWindow", | |
| "when": "!editorIsOpen && !multipleEditorGroups" | |
| }, | |
| // Close other editors in group | |
| { | |
| "key": "cmd+ctrl+shift+w", | |
| "command": "workbench.action.closeOtherEditors" | |
| }, | |
| // Close group | |
| { | |
| "key": "cmd+e w", | |
| "command": "workbench.action.closeEditorsInGroup" | |
| }, | |
| // Close other groups | |
| { | |
| "key": "cmd+e cmd+w", | |
| "command": "workbench.action.closeEditorsInOtherGroups" | |
| }, | |
| // Close all editors | |
| { | |
| "key": "shift+cmd+w", | |
| "command": "workbench.action.closeAllEditors" | |
| }, | |
| // Close all unmodified editors | |
| { | |
| "key": "cmd+e u", | |
| "command": "git.closeAllUnmodifiedEditors" | |
| }, | |
| { | |
| "key": "cmd+e cmd+u", | |
| "command": "git.closeAllUnmodifiedEditors" | |
| }, | |
| // Close window | |
| { | |
| "key": "cmd+q", | |
| "command": "workbench.action.closeWindow", | |
| "when": "editorIsOpen || activeEditorGroupEmpty" | |
| }, | |
| // Reopen closed editor | |
| { | |
| "key": "shift+cmd+t", | |
| "command": "workbench.action.reopenClosedEditor" | |
| }, | |
| // Previous editor | |
| { | |
| "key": "shift+cmd+[", | |
| "command": "workbench.action.previousEditorInGroup" | |
| }, | |
| // Next editor | |
| { | |
| "key": "shift+cmd+]", | |
| "command": "workbench.action.nextEditorInGroup" | |
| }, | |
| // Focus # editor | |
| { | |
| "key": "ctrl+1", | |
| "command": "workbench.action.openEditorAtIndex1" | |
| }, | |
| { | |
| "key": "ctrl+2", | |
| "command": "workbench.action.openEditorAtIndex2" | |
| }, | |
| { | |
| "key": "ctrl+3", | |
| "command": "workbench.action.openEditorAtIndex3" | |
| }, | |
| { | |
| "key": "ctrl+4", | |
| "command": "workbench.action.openEditorAtIndex4" | |
| }, | |
| { | |
| "key": "ctrl+5", | |
| "command": "workbench.action.openEditorAtIndex5" | |
| }, | |
| { | |
| "key": "ctrl+6", | |
| "command": "workbench.action.openEditorAtIndex6" | |
| }, | |
| { | |
| "key": "ctrl+7", | |
| "command": "workbench.action.openEditorAtIndex7" | |
| }, | |
| { | |
| "key": "ctrl+8", | |
| "command": "workbench.action.openEditorAtIndex8" | |
| }, | |
| { | |
| "key": "ctrl+9", | |
| "command": "workbench.action.openEditorAtIndex9" | |
| }, | |
| // Focus # editor group | |
| { | |
| "key": "cmd+0", | |
| "command": "workbench.action.focusSideBar" | |
| }, | |
| { | |
| "key": "cmd+1", | |
| "command": "workbench.action.focusFirstEditorGroup" | |
| }, | |
| { | |
| "key": "cmd+2", | |
| "command": "workbench.action.focusSecondEditorGroup" | |
| }, | |
| { | |
| "key": "cmd+3", | |
| "command": "workbench.action.focusThirdEditorGroup" | |
| }, | |
| { | |
| "key": "cmd+4", | |
| "command": "workbench.action.focusFourthEditorGroup" | |
| }, | |
| { | |
| "key": "cmd+5", | |
| "command": "workbench.action.focusFifthEditorGroup" | |
| }, | |
| { | |
| "key": "cmd+6", | |
| "command": "workbench.action.focusSixthEditorGroup" | |
| }, | |
| { | |
| "key": "cmd+7", | |
| "command": "workbench.action.focusSeventhEditorGroup" | |
| }, | |
| { | |
| "key": "cmd+8", | |
| "command": "workbench.action.focusEighthEditorGroup" | |
| }, | |
| // Move editor left | |
| { | |
| "key": "cmd+ctrl+[", | |
| "command": "workbench.action.moveEditorLeftInGroup" | |
| }, | |
| // Move editor right | |
| { | |
| "key": "cmd+ctrl+]", | |
| "command": "workbench.action.moveEditorRightInGroup" | |
| }, | |
| // Zoom in | |
| { | |
| "key": "cmd+=", | |
| "command": "workbench.action.zoomIn" | |
| }, | |
| // Zoom out | |
| { | |
| "key": "cmd+-", | |
| "command": "workbench.action.zoomOut" | |
| }, | |
| // Reset zoom | |
| { | |
| "key": "shift+cmd+=", | |
| "command": "workbench.action.zoomReset" | |
| }, | |
| { | |
| "key": "shift+cmd+-", | |
| "command": "workbench.action.zoomReset" | |
| }, | |
| // Toggle maximize | |
| { | |
| "key": "shift+escape", | |
| "command": "workbench.action.maximizeEditorHideSidebar", | |
| "when": "editorPartMaximizedEditorGroup || editorPartMultipleEditorGroups" | |
| }, | |
| { | |
| "key": "shift+escape", | |
| "command": "workbench.action.evenEditorWidths", | |
| "when": "editorPartMaximizedEditorGroup" | |
| }, | |
| { | |
| "key": "shift+escape", | |
| "command": "workbench.action.toggleMaximizedPanel", | |
| "when": "panelFocus" | |
| }, | |
| { | |
| "key": "shift+escape", | |
| "command": "workbench.action.toggleMaximizedAuxiliaryBar", | |
| "when": "auxiliaryBarFocus" | |
| }, | |
| // TM Scopes | |
| { | |
| "key": "cmd+ctrl+i", | |
| "command": "editor.action.inspectTMScopes", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Developer tools | |
| { | |
| "key": "ctrl+shift+cmd+i", | |
| "command": "workbench.action.toggleDevTools" | |
| }, | |
| // ## Explorer ----------------------------------------------------- | |
| // New file | |
| { | |
| "key": "cmd+n", | |
| "command": "explorer.newFile", | |
| "when": "explorerViewletVisible && filesExplorerFocus" | |
| }, | |
| // New folder | |
| { | |
| "key": "shift+cmd+n", | |
| "command": "explorer.newFolder", | |
| "when": "explorerViewletVisible && filesExplorerFocus" | |
| }, | |
| // Rename file | |
| { | |
| "key": "cmd+r", | |
| "command": "renameFile", | |
| "when": "explorerViewletVisible && filesExplorerFocus" | |
| }, | |
| // Open file | |
| { | |
| "key": "enter", | |
| "command": "list.select", | |
| "when": "listFocus && !inputFocus && !treestickyScrollFocused" | |
| }, | |
| { | |
| "key": "ctrl+l", | |
| "command": "list.select", | |
| "when": "listFocus" | |
| }, | |
| // Open file to side | |
| { | |
| "key": "cmd+enter", | |
| "command": "explorer.openToSide", | |
| "when": "listFocus" | |
| }, | |
| { | |
| "key": "ctrl+shift+l", | |
| "command": "explorer.openToSide", | |
| "when": "listFocus" | |
| }, | |
| { | |
| "key": "space", | |
| "command": "list.toggleExpand", | |
| "when": "listFocus && !inputFocus && !treestickyScrollFocused" | |
| }, | |
| // Collapse | |
| { | |
| "key": "ctrl+h", | |
| "command": "list.collapse", | |
| "when": "listFocus" | |
| }, | |
| // Collapse all | |
| { | |
| "key": "cmd+ctrl+h", | |
| "command": "workbench.files.action.collapseExplorerFolders" | |
| }, | |
| // ## Modes ============================================================== | |
| // ## Go to -------------------------------------------------------------- | |
| // Go to recent file | |
| { | |
| "key": "ctrl+g f", | |
| "command": "workbench.action.showAllEditorsByMostRecentlyUsed" | |
| }, | |
| { | |
| "key": "ctrl+g ctrl+f", | |
| "command": "workbench.action.showAllEditorsByMostRecentlyUsed" | |
| }, | |
| // Go to line | |
| { | |
| "key": "ctrl+g g", | |
| "command": "workbench.action.gotoLine" | |
| }, | |
| { | |
| "key": "ctrl+g ctrl+g", | |
| "command": "workbench.action.gotoLine" | |
| }, | |
| // Go to definition | |
| { | |
| "key": "ctrl+g d", | |
| "command": "editor.action.goToDeclaration", | |
| "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" | |
| }, | |
| // Open definition to the side | |
| { | |
| "key": "ctrl+g ctrl+d", | |
| "command": "editor.action.openDeclarationToTheSide", | |
| "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" | |
| }, | |
| // Go to symbol | |
| { | |
| "key": "ctrl+g s", | |
| "command": "workbench.action.gotoSymbol" | |
| }, | |
| { | |
| "key": "ctrl+g ctrl+s", | |
| "command": "workbench.action.gotoSymbol" | |
| }, | |
| // Go to symbol in workspace | |
| { | |
| "key": "ctrl+g w", | |
| "command": "workbench.action.showAllSymbols" | |
| }, | |
| { | |
| "key": "ctrl+g ctrl+w", | |
| "command": "workbench.action.showAllSymbols" | |
| }, | |
| // Go to references | |
| { | |
| "key": "ctrl+g r", | |
| "command": "editor.action.referenceSearch.trigger", | |
| "when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
| }, | |
| { | |
| "key": "ctrl+g ctrl+r", | |
| "command": "editor.action.referenceSearch.trigger", | |
| "when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
| }, | |
| // Peek definition | |
| { | |
| "key": "ctrl+g p", | |
| "command": "editor.action.previewDeclaration", | |
| "when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
| }, | |
| { | |
| "key": "ctrl+g ctrl+p", | |
| "command": "editor.action.previewDeclaration", | |
| "when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
| }, | |
| // Show hover | |
| { | |
| "key": "ctrl+g h", | |
| "command": "editor.action.showHover", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+g h", | |
| "command": "editor.debug.action.showDebugHover", | |
| "when": "editorTextFocus && inDebugMode" | |
| }, | |
| // ## Lines -------------------------------------------------------------- | |
| // Fold | |
| { | |
| "key": "cmd+l [", | |
| "command": "editor.fold", | |
| "when": "editorTextFocus" | |
| }, | |
| // Fold all | |
| { | |
| "key": "cmd+l cmd+[", | |
| "command": "editor.foldAll", | |
| "when": "editorTextFocus" | |
| }, | |
| // Fold all subregions | |
| { | |
| "key": "cmd+l shift+cmd+[", | |
| "command": "editor.foldRecursively", | |
| "when": "editorTextFocus" | |
| }, | |
| // Unfold | |
| { | |
| "key": "cmd+l ]", | |
| "command": "editor.unfold", | |
| "when": "editorTextFocus" | |
| }, | |
| // Unfold all | |
| { | |
| "key": "cmd+l cmd+]", | |
| "command": "editor.unfoldAll", | |
| "when": "editorTextFocus" | |
| }, | |
| // Unfold all subregions | |
| { | |
| "key": "cmd+l shift+cmd+]", | |
| "command": "editor.unfoldRecursively", | |
| "when": "editorTextFocus" | |
| }, | |
| // Fold level # | |
| { | |
| "key": "cmd+l 1", | |
| "command": "editor.foldLevel1", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+l 2", | |
| "command": "editor.foldLevel2", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+l 3", | |
| "command": "editor.foldLevel3", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+l 4", | |
| "command": "editor.foldLevel4", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+l 5", | |
| "command": "editor.foldLevel5", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+l 6", | |
| "command": "editor.foldLevel6", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "cmd+l 7", | |
| "command": "editor.foldLevel7", | |
| "when": "editorTextFocus" | |
| }, | |
| // Uppercase | |
| { | |
| "key": "cmd+l =", | |
| "command": "editor.action.transformToUppercase", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Lowercase | |
| { | |
| "key": "cmd+l -", | |
| "command": "editor.action.transformToLowercase", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| // Sort lines ascending | |
| { | |
| "key": "cmd+l a", | |
| "command": "editor.action.sortLinesAscending" | |
| }, | |
| // Sort lines descending | |
| { | |
| "key": "cmd+l z", | |
| "command": "editor.action.sortLinesDescending" | |
| }, | |
| // Rename symbol | |
| { | |
| "key": "cmd+l r", | |
| "command": "editor.action.rename", | |
| "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "cmd+l cmd+r", | |
| "command": "editor.action.rename", | |
| "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" | |
| }, | |
| // Format selection | |
| { | |
| "key": "cmd+l f", | |
| "command": "editor.action.formatSelection", | |
| "when": "editorHasDocumentSelectionFormattingProvider && editorHasSelection && editorTextFocus && !editorReadonly" | |
| }, | |
| // Format document | |
| { | |
| "key": "cmd+l cmd+f", | |
| "command": "editor.action.formatDocument", | |
| "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly" | |
| }, | |
| // ## Display ------------------------------------------------------- | |
| // Sidebar toggle | |
| { | |
| "key": "cmd+m /", | |
| "command": "workbench.action.toggleSidebarVisibility" | |
| }, | |
| // Secondary sidebar toggle | |
| { | |
| "key": "cmd+m \\", | |
| "command": "workbench.action.toggleAuxiliaryBar" | |
| }, | |
| // Sidebar focus | |
| { | |
| "key": "cmd+m cmd+/", | |
| "command": "workbench.action.focusSideBar" | |
| }, | |
| { | |
| "key": "cmd+m cmd+/", | |
| "command": "workbench.action.focusActiveEditorGroup", | |
| "when": "sideBarFocus" | |
| }, | |
| // Secondary sidebar focus | |
| { | |
| "key": "cmd+m cmd-\\", | |
| "command": "workbench.action.focusAuxiliaryBar" | |
| }, | |
| { | |
| "key": "cmd+m cmd+\\", | |
| "command": "workbench.action.focusActiveEditorGroup", | |
| "when": "auxiliaryBarFocus" | |
| }, | |
| // Focus on open editors | |
| { | |
| "key": "cmd+m e", | |
| "command": "workbench.files.action.focusOpenEditorsView" | |
| }, | |
| // Focus on files Explorer | |
| { | |
| "key": "cmd+m f", | |
| "command": "workbench.files.action.focusFilesExplorer" | |
| }, | |
| // Focus on Outline view | |
| { | |
| "key": "cmd+m l", | |
| "command": "outline.focus" | |
| }, | |
| { | |
| "key": "cmd+m cmd+l", | |
| "command": "outline.focus" | |
| }, | |
| { | |
| "key": "cmd+m cmd+l", | |
| "command": "workbench.action.focusActiveEditorGroup", | |
| "when": "outlineFocused" | |
| }, | |
| // Show search | |
| { | |
| "key": "cmd+m s", | |
| "command": "search.action.focusActiveEditor", | |
| "when": "searchInputBoxFocus && searchViewletVisible" | |
| }, | |
| { | |
| "key": "cmd+m s", | |
| "command": "workbench.action.findInFiles", | |
| "when": "!searchInputBoxFocus" | |
| }, | |
| { | |
| "key": "cmd+m s", | |
| "command": "workbench.view.search", | |
| "when": "!searchViewletVisible" | |
| }, | |
| // Show search and replace | |
| { | |
| "key": "cmd+m r", | |
| "command": "workbench.action.replaceInFiles" | |
| }, | |
| { | |
| "key": "cmd+m r", | |
| "command": "search.action.focusActiveEditor", | |
| "when": "replaceInputBoxFocus && searchViewletVisible" | |
| }, | |
| // Show source control | |
| { | |
| "key": "cmd+m g", | |
| "command": "workbench.view.scm" | |
| }, | |
| { | |
| "key": "cmd+m cmd+g", | |
| "command": "workbench.view.scm" | |
| }, | |
| // Show debug | |
| { | |
| "key": "cmd+m b", | |
| "command": "workbench.view.debug" | |
| }, | |
| { | |
| "key": "cmd+m cmd+b", | |
| "command": "workbench.view.debug" | |
| }, | |
| // Show extensions | |
| { | |
| "key": "cmd+m x", | |
| "command": "workbench.view.extensions" | |
| }, | |
| { | |
| "key": "cmd+m cmd+x", | |
| "command": "workbench.view.extensions" | |
| }, | |
| // Panel toggle | |
| { | |
| "key": "cmd+m -", | |
| "command": "workbench.action.togglePanel" | |
| }, | |
| // Panel focus | |
| { | |
| "key": "cmd+m cmd+-", | |
| "command": "workbench.action.focusPanel" | |
| }, | |
| { | |
| "key": "cmd+m cmd+-", | |
| "command": "workbench.action.focusActiveEditorGroup", | |
| "when": "panelFocus" | |
| }, | |
| // Show problems | |
| { | |
| "key": "cmd+m p", | |
| "command": "workbench.actions.view.problems" | |
| }, | |
| { | |
| "key": "cmd+m cmd+p", | |
| "command": "workbench.actions.view.problems" | |
| }, | |
| // Show output | |
| { | |
| "key": "cmd+m o", | |
| "command": "workbench.action.output.toggleOutput" | |
| }, | |
| { | |
| "key": "cmd+m cmd+o", | |
| "command": "workbench.action.output.toggleOutput" | |
| }, | |
| // Show debug console | |
| { | |
| "key": "cmd+m c", | |
| "command": "workbench.debug.action.toggleRepl" | |
| }, | |
| { | |
| "key": "cmd+m cmd+c", | |
| "command": "workbench.debug.action.toggleRepl" | |
| }, | |
| // Toggle integrated terminal | |
| { | |
| "key": "cmd+m t", | |
| "command": "workbench.action.terminal.toggleTerminal" | |
| }, | |
| // Focus integrated terminal | |
| { | |
| "key": "cmd+m cmd+t", | |
| "command": "workbench.action.terminal.focus" | |
| }, | |
| { | |
| "key": "cmd+m cmd+t", | |
| "command": "workbench.action.focusActiveEditorGroup", | |
| "when": "terminalFocus" | |
| }, | |
| // Toggle zen mode | |
| { | |
| "key": "cmd+m z", | |
| "command": "workbench.action.toggleZenMode" | |
| }, | |
| { | |
| // don't accidentally exit zen mode | |
| "key": "escape escape", | |
| "command": "-workbench.action.exitZenMode", | |
| "when": "inZenMode" | |
| }, | |
| // Toggle full screen | |
| { | |
| "key": "cmd+m cmd+f", | |
| "command": "workbench.action.toggleFullScreen" | |
| }, | |
| // Markdown preview | |
| { | |
| "key": "cmd+m m", | |
| "command": "markdown.showPreview", | |
| "when": "editorLangId == 'markdown'" | |
| }, | |
| // Markdown preview to side | |
| { | |
| "key": "cmd+m cmd+m", | |
| "command": "markdown.showPreviewToSide", | |
| "when": "editorLangId == 'markdown'" | |
| }, | |
| // ## Editor ------------------------------------------------------------- | |
| // Move editor up | |
| { | |
| "key": "cmd+e up", | |
| "command": "workbench.action.moveEditorToAboveGroup" | |
| }, | |
| // Move editor down | |
| { | |
| "key": "cmd+e down", | |
| "command": "workbench.action.moveEditorToBelowGroup" | |
| }, | |
| // Move editor left | |
| { | |
| "key": "cmd+e left", | |
| "command": "workbench.action.moveEditorToLeftGroup" | |
| }, | |
| // Move editor right | |
| { | |
| "key": "cmd+e right", | |
| "command": "workbench.action.moveEditorToRightGroup" | |
| }, | |
| // Move editor group up | |
| { | |
| "key": "cmd+e cmd+up", | |
| "command": "workbench.action.moveActiveEditorGroupUp" | |
| }, | |
| //Move editor group down | |
| { | |
| "key": "cmd+e cmd+down", | |
| "command": "workbench.action.moveActiveEditorGroupDown" | |
| }, | |
| // Move editor group left | |
| { | |
| "key": "cmd+e cmd+left", | |
| "command": "workbench.action.moveActiveEditorGroupLeft" | |
| }, | |
| //Move editor group right | |
| { | |
| "key": "cmd+e cmd+right", | |
| "command": "workbench.action.moveActiveEditorGroupRight" | |
| }, | |
| // Join editors groups | |
| { | |
| "key": "cmd+e j", | |
| "command": "workbench.action.joinTwoGroups" | |
| }, | |
| { | |
| "key": "cmd+e cmd+j", | |
| "command": "workbench.action.joinTwoGroups" | |
| }, | |
| // Cycle editor groups | |
| { | |
| "key": "cmd+e cmd+e", | |
| "command": "workbench.action.navigateEditorGroups", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "cmd+e cmd+e", | |
| "command": "workbench.action.focusActiveEditorGroup", | |
| "when": "!editorFocus" | |
| }, | |
| // Split editor right | |
| { | |
| "key": "cmd+e /", | |
| "command": "workbench.action.splitEditorToRightGroup" | |
| }, | |
| // Split editor down | |
| { | |
| "key": "cmd+e -", | |
| "command": "workbench.action.splitEditorToBelowGroup" | |
| }, | |
| // Toggle editor group horizontal | |
| { | |
| "key": "cmd+e h", | |
| "command": "workbench.action.toggleEditorGroupLayout" | |
| }, | |
| // Pin editor | |
| { | |
| "key": "cmd+e enter", | |
| "command": "workbench.action.pinEditor", | |
| "when": "!activeEditorIsPinned" | |
| }, | |
| { | |
| "key": "cmd+e enter", | |
| "command": "workbench.action.unpinEditor", | |
| "when": "activeEditorIsPinned" | |
| }, | |
| // ## Settings ---------------------------------------------------- | |
| // Open settings | |
| { | |
| "key": "cmd+,", | |
| "command": "workbench.action.openGlobalSettings" | |
| }, | |
| { | |
| "key": "cmd+k k", | |
| "command": "workbench.action.openGlobalSettings" | |
| }, | |
| // Open settings JSON | |
| { | |
| "key": "cmd+shift+,", | |
| "command": "workbench.action.openSettingsJson" | |
| }, | |
| { | |
| "key": "cmd+k cmd+k", | |
| "command": "workbench.action.openSettingsJson" | |
| }, | |
| // Keyboard shortcuts | |
| { | |
| "key": "cmd+k s", | |
| "command": "workbench.action.openGlobalKeybindings" | |
| }, | |
| // Keyboard shortcuts JSON | |
| { | |
| "key": "cmd+k cmd+s", | |
| "command": "workbench.action.openGlobalKeybindingsFile" | |
| }, | |
| // Open user snippets | |
| { | |
| "key": "cmd+k u", | |
| "command": "workbench.action.openSnippets" | |
| }, | |
| // Insert snippet | |
| { | |
| "key": "cmd+k cmd+u", | |
| "command": "editor.action.insertSnippet", | |
| "when": "editorTextFocus" | |
| }, | |
| // Open color themes | |
| { | |
| "key": "cmd+k t", | |
| "command": "workbench.action.selectTheme" | |
| }, | |
| { | |
| "key": "cmd+k cmd+t", | |
| "command": "workbench.action.selectTheme" | |
| }, | |
| // Change language | |
| { | |
| "key": "cmd+k l", | |
| "command": "workbench.action.editor.changeLanguageMode" | |
| }, | |
| { | |
| "key": "cmd+k cmd+l", | |
| "command": "workbench.action.editor.changeLanguageMode" | |
| }, | |
| // Copy path of active file | |
| { | |
| "key": "cmd+k p", | |
| "command": "copyFilePath" | |
| }, | |
| // Copy path of active file | |
| { | |
| "key": "cmd+k cmd+p", | |
| "command": "copyRelativeFilePath" | |
| }, | |
| // Toggle minimap | |
| { | |
| "key": "cmd+k m", | |
| "command": "editor.action.toggleMinimap" | |
| }, | |
| { | |
| "key": "cmd+k cmd+m", | |
| "command": "editor.action.toggleMinimap" | |
| }, | |
| // ## Terminal ---------------------------------------------------------------- | |
| // New termina | |
| { | |
| "key": "cmd+n", | |
| "command": "workbench.action.terminal.new", | |
| "when": "terminalFocus" | |
| }, | |
| // Split terminal | |
| { | |
| "key": "cmd+d", | |
| "command": "workbench.action.terminal.splitActiveTab", | |
| "when": "terminalFocus" | |
| }, | |
| { | |
| "key": "cmd+shift+d", | |
| "command": "workbench.action.terminal.splitActiveTab", | |
| "when": "terminalFocus" | |
| }, | |
| // // Focus previous tab | |
| { | |
| "key": "shift+cmd+[", | |
| "command": "workbench.action.terminal.focusPrevious", | |
| "when": "terminalFocus && terminalHasBeenCreated && !terminalEditorFocus || terminalFocus && terminalProcessSupported && !terminalEditorFocus" | |
| }, | |
| // // Focus next tab | |
| { | |
| "key": "shift+cmd+]", | |
| "command": "workbench.action.terminal.focusNext", | |
| "when": "terminalFocus && terminalHasBeenCreated && !terminalEditorFocus || terminalFocus && terminalProcessSupported && !terminalEditorFocus" | |
| }, | |
| // Focus previous split | |
| { | |
| "key": "cmd+[", | |
| "command": "workbench.action.terminal.focusPreviousPane", | |
| "when": "terminalFocus && terminalHasBeenCreated && terminalSplitPaneActive || terminalFocus && terminalProcessSupported && terminalSplitPaneActive" | |
| }, | |
| // Focus next split | |
| { | |
| "key": "cmd+]", | |
| "command": "workbench.action.terminal.focusNextPane", | |
| "when": "terminalFocus && terminalHasBeenCreated && terminalSplitPaneActive || terminalFocus && terminalProcessSupported && terminalSplitPaneActive" | |
| }, | |
| // Clear | |
| { | |
| "key": "cmd+k", | |
| "command": "workbench.action.terminal.clear", | |
| "when": "terminalFocus && terminalHasBeenCreated && !accessibilityModeEnabled || terminalFocus && terminalProcessSupported && !accessibilityModeEnabled || accessibilityModeEnabled && accessibleViewIsShown && terminalHasBeenCreated && accessibleViewCurrentProviderId == 'terminal' || accessibilityModeEnabled && accessibleViewIsShown && terminalProcessSupported && accessibleViewCurrentProviderId == 'terminal'" | |
| }, | |
| // Kill | |
| { | |
| "key": "cmd+w", | |
| "command": "workbench.action.terminal.kill", | |
| "when": "terminalFocus" | |
| }, | |
| // ## Tasks ------------------------------------------------------------ | |
| // Run task | |
| { | |
| "key": "cmd+t t", | |
| "command": "workbench.action.tasks.runTask" | |
| }, | |
| { | |
| "key": "cmd+t cmd+t", | |
| "command": "workbench.action.tasks.runTask" | |
| }, | |
| // Rerun task | |
| { | |
| "key": "cmd+t r", | |
| "command": "workbench.action.tasks.reRunTask" | |
| }, | |
| { | |
| "key": "cmd+t cmd+r", | |
| "command": "workbench.action.tasks.reRunTask" | |
| }, | |
| // ## Version control ------------------------------------------------------ | |
| // View changes | |
| { | |
| "key": "cmd+o", | |
| "command": "git.viewChanges", | |
| "when": "view.workbench.scm.visible" | |
| }, | |
| // View staged changes | |
| { | |
| "key": "cmd+shift+o", | |
| "command": "git.viewStagedChanges", | |
| "when": "view.workbench.scm.visible" | |
| }, | |
| // Open file | |
| { | |
| "key": "cmd+o", | |
| "command": "git.openFile", | |
| "when": "editorTextFocus && inDiffEditor" | |
| }, | |
| // Stage | |
| { | |
| "key": "cmd+alt+y", | |
| "command": "git.stageSelectedRanges", | |
| "when": "textCompareEditorVisible || editorTextFocus && inDiffEditor || editorTextFocus && dirtyDiffVisible && !operationInProgress && resourceScheme == 'file'" | |
| }, | |
| // Unstage | |
| { | |
| "key": "cmd+alt+u", | |
| "command": "git.unstageSelectedRanges", | |
| "when": "editorTextFocus && inDiffEditor" | |
| }, | |
| // Discard | |
| { | |
| "key": "cmd+alt+z", | |
| "command": "git.revertSelectedRanges", | |
| "when": "textCompareEditorVisible || editorTextFocus && dirtyDiffVisible && !operationInProgress && resourceScheme == 'file'" | |
| }, | |
| ] | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment