// Place your key bindings in this file to override the defaults [ { "command": "acceptSelectedSuggestion", "key": "enter", "when": "editorTextFocus && suggestWidgetVisible" }, { "key": "alt+cmd+l", "command": "-toggleSearchEditorContextLines", "when": "inSearchEditor" }, { "key": "alt+cmd+l", "command": "-toggleFindInSelection", "when": "editorFocus" }, { "key": "alt+cmd+l", "command": "editor.action.formatDocument", "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" }, { "key": "shift+alt+f", "command": "-editor.action.formatDocument", "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" }, { "key": "alt+cmd+left", "command": "-workbench.action.previousEditor" }, { "key": "alt+cmd+right", "command": "-workbench.action.nextEditor" }, { "key": "alt+cmd+left", "command": "workbench.action.navigateBack", "when": "canNavigateBack" }, { "key": "ctrl+-", "command": "-workbench.action.navigateBack", "when": "canNavigateBack" }, { "key": "alt+cmd+right", "command": "workbench.action.navigateForward", "when": "canNavigateForward" }, { "key": "ctrl+shift+-", "command": "-workbench.action.navigateForward", "when": "canNavigateForward" }, { "key": "alt+cmd+enter", "command": "editor.action.insertLineBefore", "when": "editorTextFocus && !editorReadonly" }, { "key": "shift+cmd+enter", "command": "-editor.action.insertLineBefore", "when": "editorTextFocus && !editorReadonly" }, { "key": "cmd+l", "command": "workbench.action.gotoLine" }, { "key": "ctrl+g", "command": "-workbench.action.gotoLine" }, { "key": "alt+cmd+z", "command": "git.clean" }, { "key": "shift+cmd+enter", "command": "editor.action.insertLineAfter", "when": "editorTextFocus && !editorReadonly" }, { "key": "cmd+enter", "command": "-editor.action.insertLineAfter", "when": "editorTextFocus && !editorReadonly" }, { "key": "cmd+enter", "command": "editor.action.quickFix", "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" }, { "key": "cmd+.", "command": "-editor.action.quickFix", "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" }, { "key": "cmd+backspace", "command": "editor.action.deleteLines", "when": "textInputFocus && !editorReadonly" }, { "key": "shift+cmd+k", "command": "-editor.action.deleteLines", "when": "textInputFocus && !editorReadonly" }, { "key": "f12", "command": "-editor.action.revealDefinition", "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" }, { "key": "alt+cmd+o", "command": "autoflake-extension.run" }, { "key": "f11", "command": "editor.action.marker.nextInFiles", "when": "editorFocus" }, { "key": "f8", "command": "-editor.action.marker.nextInFiles", "when": "editorFocus" }, { "key": "f10", "command": "editor.action.diffReview.next", "when": "isInDiffEditor" }, { "key": "f7", "command": "-editor.action.diffReview.next", "when": "isInDiffEditor" }, { "key": "f8", "command": "workbench.action.debug.stepOver", "when": "debugState == 'stopped'" }, { "key": "f10", "command": "-workbench.action.debug.stepOver", "when": "debugState == 'stopped'" }, { "key": "f7", "command": "workbench.action.debug.stepInto", "when": "debugState != 'inactive'" }, { "key": "f11", "command": "-workbench.action.debug.stepInto", "when": "debugState != 'inactive'" }, { "key": "shift+f6", "command": "-workbench.action.focusPreviousPart" }, { "key": "shift+f6", "command": "editor.action.rename", "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" }, { "key": "f2", "command": "-editor.action.rename", "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" }, { "key": "alt+cmd+o", "command": "editor.action.organizeImports", "when": "editorTextFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)source\\.organizeImports\\b/" }, { "key": "shift+alt+o", "command": "-editor.action.organizeImports", "when": "editorTextFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)source\\.organizeImports\\b/" }, { "key": "alt+cmd+b", "command": "-workbench.action.toggleAuxiliaryBar" }, { "key": "alt+cmd+k", "command": "-bookmarks.toggle", "when": "editorTextFocus" }, { "key": "alt+cmd+k", "command": "bookmarks.toggleLabeled" }, { "key": "alt+cmd+u", "command": "cursorUndo", "when": "textInputFocus" }, { "key": "cmd+u", "command": "-cursorUndo", "when": "textInputFocus" }, { "key": "cmd+f12", "command": "-editor.action.revealDefinition", "when": "editorHasDefinitionProvider && editorTextFocus && isWeb" }, { "key": "alt+cmd+b", "command": "editor.action.goToImplementation", "when": "editorHasImplementationProvider && editorTextFocus" }, { "key": "cmd+f12", "command": "-editor.action.goToImplementation", "when": "editorHasImplementationProvider && editorTextFocus" }, { "key": "cmd+u", "command": "editor.action.revealDeclaration" }, { "key": "cmd+f12", "command": "workbench.action.gotoSymbol", "when": "!accessibilityHelpIsShown && !accessibleViewIsShown" }, { "key": "alt+f7", "command": "references-view.showCallHierarchy", "when": "editorHasCallHierarchyProvider" }, { "key": "shift+alt+h", "command": "-references-view.showCallHierarchy", "when": "editorHasCallHierarchyProvider" }, { "key": "cmd+r", "command": "workbench.action.openRecent" }, { "key": "ctrl+r", "command": "-workbench.action.openRecent" }, { "key": "alt+cmd+s", "command": "workbench.action.toggleUnifiedSidebarFromKeyboard", "when": "!isAuxiliaryWindowFocusedContext" } ]