https://raw.githubusercontent.com/zed-industries/zed/main/assets/keymaps/default-windows.json [ // Standard Windows bindings { "use_key_equivalents": true, "bindings": { "home": "menu::SelectFirst", "shift-pageup": "menu::SelectFirst", "pageup": "menu::SelectFirst", "end": "menu::SelectLast", "shift-pagedown": "menu::SelectLast", "pagedown": "menu::SelectLast", "ctrl-n": "menu::SelectNext", "tab": "menu::SelectNext", "down": "menu::SelectNext", "ctrl-p": "menu::SelectPrevious", "shift-tab": "menu::SelectPrevious", "up": "menu::SelectPrevious", "enter": "menu::Confirm", "ctrl-enter": "menu::SecondaryConfirm", "ctrl-c": "menu::Cancel", "escape": "menu::Cancel", "shift-alt-enter": "menu::Restart", "alt-enter": ["picker::ConfirmInput", { "secondary": false }], "ctrl-alt-enter": ["picker::ConfirmInput", { "secondary": true }], "ctrl-shift-w": "workspace::CloseWindow", "shift-escape": "workspace::ToggleZoom", "ctrl-o": "workspace::OpenFiles", "ctrl-k ctrl-o": "workspace::Open", "ctrl-=": ["zed::IncreaseBufferFontSize", { "persist": false }], "ctrl-shift-=": ["zed::IncreaseBufferFontSize", { "persist": false }], "ctrl--": ["zed::DecreaseBufferFontSize", { "persist": false }], "ctrl-0": ["zed::ResetBufferFontSize", { "persist": false }], "ctrl-alt-,": "zed::OpenSettingsFile", "ctrl-q": "zed::Quit", "f4": "debugger::Start", "shift-f5": "debugger::Stop", "ctrl-shift-f5": "debugger::RerunSession", "f6": "debugger::Pause", "f10": "debugger::StepOver", "shift-f11": "debugger::StepOut", "f11": "zed::ToggleFullScreen", "ctrl-shift-i": "edit_prediction::ToggleMenu", "shift-alt-l": "lsp_tool::ToggleMenu", "ctrl-shift-alt-c": "editor::DisplayCursorNames", "ctrl-shift-alt-s": "workspace::ToggleWorktreeSecurity", }, }, { "context": "Picker || menu", "use_key_equivalents": true, "bindings": { "up": "menu::SelectPrevious", "down": "menu::SelectNext", }, }, { "context": "menu", "bindings": { "right": "menu::SelectChild", "left": "menu::SelectParent", }, }, { "context": "Editor", "use_key_equivalents": true, "bindings": { "escape": "editor::Cancel", "shift-backspace": "editor::Backspace", "backspace": "editor::Backspace", "delete": "editor::Delete", "tab": "editor::Tab", "shift-tab": "editor::Backtab", "ctrl-k ctrl-q": "editor::Rewrap", "ctrl-k q": "editor::Rewrap", "ctrl-backspace": ["editor::DeleteToPreviousWordStart", { "ignore_newlines": false, "ignore_brackets": false }], "ctrl-delete": ["editor::DeleteToNextWordEnd", { "ignore_newlines": false, "ignore_brackets": false }], "shift-delete": "editor::Cut", "ctrl-x": "editor::Cut", "ctrl-insert": "editor::Copy", "ctrl-c": "editor::Copy", "shift-insert": "editor::Paste", "ctrl-v": "editor::Paste", "ctrl-z": "editor::Undo", "ctrl-y": "editor::Redo", "ctrl-shift-z": "editor::Redo", "up": "editor::MoveUp", "ctrl-up": "editor::LineUp", "ctrl-down": "editor::LineDown", "pageup": "editor::MovePageUp", "alt-pageup": "editor::PageUp", "shift-pageup": "editor::SelectPageUp", "home": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": true, "stop_at_indent": true }], "down": "editor::MoveDown", "pagedown": "editor::MovePageDown", "alt-pagedown": "editor::PageDown", "shift-pagedown": "editor::SelectPageDown", "end": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }], "left": "editor::MoveLeft", "right": "editor::MoveRight", "ctrl-left": "editor::MoveToPreviousWordStart", "ctrl-right": "editor::MoveToNextWordEnd", "ctrl-home": "editor::MoveToBeginning", "ctrl-end": "editor::MoveToEnd", "shift-up": "editor::SelectUp", "shift-down": "editor::SelectDown", "shift-left": "editor::SelectLeft", "shift-right": "editor::SelectRight", "ctrl-shift-left": "editor::SelectToPreviousWordStart", "ctrl-shift-right": "editor::SelectToNextWordEnd", "ctrl-shift-home": "editor::SelectToBeginning", "ctrl-shift-end": "editor::SelectToEnd", "ctrl-a": "editor::SelectAll", "ctrl-l": "editor::SelectLine", "shift-alt-f": "editor::Format", "shift-alt-o": "editor::OrganizeImports", "shift-home": ["editor::SelectToBeginningOfLine", { "stop_at_soft_wraps": true, "stop_at_indent": true }], "shift-end": ["editor::SelectToEndOfLine", { "stop_at_soft_wraps": true }], "ctrl-alt-space": "editor::ShowCharacterPalette", "ctrl-;": "editor::ToggleLineNumbers", "ctrl-'": "editor::ToggleSelectedDiffHunks", "ctrl-\"": "editor::ExpandAllDiffHunks", "ctrl-i": "editor::ShowSignatureHelp", "alt-g b": "git::Blame", "alt-g m": "git::OpenModifiedFiles", "alt-g r": "git::ReviewDiff", "menu": "editor::OpenContextMenu", "shift-f10": "editor::OpenContextMenu", "ctrl-alt-e": "editor::ToggleEditPrediction", "f9": "editor::ToggleBreakpoint", "shift-f9": "editor::EditLogBreakpoint", }, }, { "context": "Editor && mode == full", "use_key_equivalents": true, "bindings": { "shift-enter": "editor::Newline", "enter": "editor::Newline", "ctrl-enter": "editor::NewlineBelow", "ctrl-shift-enter": "editor::NewlineAbove", "ctrl-k ctrl-z": "editor::ToggleSoftWrap", "ctrl-k z": "editor::ToggleSoftWrap", "ctrl-f": "buffer_search::Deploy", "ctrl-h": "buffer_search::DeployReplace", "ctrl-shift-.": "agent::AddSelectionToThread", "shift-alt-e": "editor::SelectEnclosingSymbol", "ctrl-shift-backspace": "editor::GoToPreviousChange", "ctrl-shift-alt-backspace": "editor::GoToNextChange", "alt-enter": "editor::OpenSelectionsInMultibuffer", }, }, { "context": "Editor && mode == full && edit_prediction", "use_key_equivalents": true, "bindings": { "alt-]": "editor::NextEditPrediction", "alt-[": "editor::PreviousEditPrediction", }, }, { "context": "Editor && !edit_prediction", "use_key_equivalents": true, "bindings": { "alt-\\": "editor::ShowEditPrediction", }, }, { "context": "Editor && mode == auto_height", "use_key_equivalents": true, "bindings": { "ctrl-enter": "editor::Newline", "shift-enter": "editor::Newline", "ctrl-shift-enter": "editor::NewlineBelow", }, }, { "context": "Markdown", "use_key_equivalents": true, "bindings": { "ctrl-c": "markdown::Copy", }, }, { "context": "Editor && jupyter", "use_key_equivalents": true, "bindings": { "ctrl-shift-enter": "repl::Run", "ctrl-alt-enter": "repl::RunInPlace", }, }, { "context": "Editor && !agent_diff", "use_key_equivalents": true, "bindings": { "ctrl-k ctrl-r": "git::Restore", "alt-y": "git::StageAndNext", "shift-alt-y": "git::UnstageAndNext", }, }, { "context": "Editor && editor_agent_diff", "use_key_equivalents": true, "bindings": { "alt-y": "agent::Keep", "ctrl-alt-y": "agent::Keep", "ctrl-alt-z": "agent::Reject", "shift-alt-y": "agent::KeepAll", "shift-alt-z": "agent::RejectAll", "ctrl-shift-r": "agent::OpenAgentDiff", }, }, { "context": "AgentDiff", "use_key_equivalents": true, "bindings": { "alt-y": "agent::Keep", "ctrl-alt-y": "agent::Keep", "ctrl-alt-z": "agent::Reject", "shift-alt-y": "agent::KeepAll", "shift-alt-z": "agent::RejectAll", }, }, { "context": "AgentPanel", "use_key_equivalents": true, "bindings": { "ctrl-n": "agent::NewThread", "shift-alt-c": "agent::OpenSettings", "shift-alt-i": "agent::ToggleOptionsMenu", "ctrl-shift-alt-n": "agent::ToggleNewThreadMenu", "ctrl-shift-e": "project_panel::ToggleFocus", "ctrl-tab": "agents_sidebar::ToggleThreadSwitcher", "ctrl-shift-tab": ["agents_sidebar::ToggleThreadSwitcher", { "select_last": true }], }, }, { "context": "AgentPanel > Markdown", "use_key_equivalents": true, "bindings": { "ctrl-c": "markdown::CopyAsMarkdown", }, }, { "context": "AgentFeedbackMessageEditor > Editor", "use_key_equivalents": true, "bindings": { "escape": "menu::Cancel", "enter": "menu::Confirm", "alt-enter": "editor::Newline", }, }, { "context": "AcpThread > ModeSelector", "bindings": { "ctrl-enter": "menu::Confirm", }, }, { "context": "AcpThread", "use_key_equivalents": true, "bindings": { "ctrl-n": "agent::NewThread", "ctrl--": "pane::GoBack", "shift-alt-l": "agent::OpenRulesLibrary", "shift-alt-p": "agent::ManageProfiles", "ctrl-i": "agent::ToggleProfileSelector", "shift-tab": "agent::CycleModeSelector", "shift-alt-/": "agent::ToggleModelSelector", "alt-tab": "agent::CycleFavoriteModels", // `alt-l` is provided as an alternative to `alt-tab` as the latter breaks on Windows under the `AcpThread` context "alt-l": "agent::CycleFavoriteModels", "shift-alt-escape": "agent::ExpandMessageEditor", "ctrl-shift-.": "agent::AddSelectionToThread", "shift-alt-q": "agent::AllowAlways", "shift-alt-a": "agent::AllowOnce", "ctrl-alt-a": "agent::OpenPermissionDropdown", "shift-alt-x": "agent::RejectOnce", "pageup": "agent::ScrollOutputPageUp", "pagedown": "agent::ScrollOutputPageDown", "home": "agent::ScrollOutputToTop", "end": "agent::ScrollOutputToBottom", "up": "agent::ScrollOutputLineUp", "down": "agent::ScrollOutputLineDown", "shift-pageup": "agent::ScrollOutputToPreviousMessage", "shift-pagedown": "agent::ScrollOutputToNextMessage", "ctrl-alt-pageup": "agent::ScrollOutputPageUp", "ctrl-alt-pagedown": "agent::ScrollOutputPageDown", "ctrl-alt-home": "agent::ScrollOutputToTop", "ctrl-alt-end": "agent::ScrollOutputToBottom", "ctrl-alt-up": "agent::ScrollOutputLineUp", "ctrl-alt-down": "agent::ScrollOutputLineDown", "ctrl-alt-shift-pageup": "agent::ScrollOutputToPreviousMessage", "ctrl-alt-shift-pagedown": "agent::ScrollOutputToNextMessage", }, }, { "context": "AcpThread > Editor", "use_key_equivalents": true, "bindings": { "ctrl-alt-pageup": "agent::ScrollOutputPageUp", "ctrl-alt-pagedown": "agent::ScrollOutputPageDown", "ctrl-alt-home": "agent::ScrollOutputToTop", "ctrl-alt-end": "agent::ScrollOutputToBottom", "ctrl-alt-up": "agent::ScrollOutputLineUp", "ctrl-alt-down": "agent::ScrollOutputLineDown", "ctrl-alt-shift-pageup": "agent::ScrollOutputToPreviousMessage", "ctrl-alt-shift-pagedown": "agent::ScrollOutputToNextMessage", "ctrl-shift-r": "agent::OpenAgentDiff", "ctrl-shift-d": "git::Diff", "shift-alt-y": "agent::KeepAll", "shift-alt-z": "agent::RejectAll", "shift-alt-u": "agent::UndoLastReject", "ctrl-enter": "agent::ChatWithFollow", "ctrl-shift-enter": "agent::SendImmediately", "ctrl-shift-alt-enter": "agent::SendNextQueuedMessage", "ctrl-shift-backspace": "agent::RemoveFirstQueuedMessage", "ctrl-alt-e": "agent::EditFirstQueuedMessage", "ctrl-alt-backspace": "agent::ClearMessageQueue", "ctrl-shift-v": "agent::PasteRaw", "ctrl-i": "agent::ToggleProfileSelector", "shift-tab": "agent::CycleModeSelector", // `alt-l` is provided as an alternative to `alt-tab` as the latter breaks on Windows under the `AcpThread > Editor` context "alt-tab": "agent::CycleFavoriteModels", "alt-l": "agent::CycleFavoriteModels", "ctrl-;": "agent::OpenAddContextMenu", "ctrl-alt-k": "agent::ToggleThinkingMode", "ctrl-alt-'": "agent::ToggleThinkingEffortMenu", "ctrl-'": "agent::CycleThinkingEffort", "ctrl-alt-.": "agent::ToggleFastMode", }, }, { "context": "AcpThread > Editor && start_of_input", "use_key_equivalents": true, "bindings": { "pageup": "agent::ScrollOutputPageUp", "ctrl-pageup": "agent::ScrollOutputPageUp", "ctrl-home": "agent::ScrollOutputToTop", }, }, { "context": "AcpThread > Editor && end_of_input", "use_key_equivalents": true, "bindings": { "pagedown": "agent::ScrollOutputPageDown", "ctrl-pagedown": "agent::ScrollOutputPageDown", "ctrl-end": "agent::ScrollOutputToBottom", }, }, { "context": "AcpThread > Editor && mode == full", "use_key_equivalents": true, "bindings": { "alt-enter": "editor::OpenExcerpts", }, }, { "context": "AcpThread > Editor && !use_modifier_to_send", "use_key_equivalents": true, "bindings": { "enter": "agent::Chat", }, }, { "context": "AcpThread > Editor && use_modifier_to_send", "use_key_equivalents": true, "bindings": { "ctrl-enter": "agent::Chat", "enter": "editor::Newline", }, }, { "context": "ThreadHistory", "use_key_equivalents": true, "bindings": { "backspace": "agent::RemoveSelectedThread", }, }, { "context": "ThreadsArchiveView", "use_key_equivalents": true, "bindings": { "shift-backspace": "agent::ArchiveSelectedThread", }, }, { "context": "BufferSearchBar", "use_key_equivalents": true, "bindings": { "escape": "buffer_search::Dismiss", "tab": "buffer_search::FocusEditor", "enter": "search::SelectNextMatch", "shift-enter": "search::SelectPreviousMatch", "ctrl-shift-enter": "editor::ToggleFoldAll", "alt-enter": "search::SelectAllMatches", "ctrl-f": "search::FocusSearch", "ctrl-h": "search::ToggleReplace", "ctrl-l": "search::ToggleSelection", }, }, { "context": "BufferSearchBar && in_replace > Editor", "use_key_equivalents": true, "bindings": { "enter": "search::ReplaceNext", "ctrl-enter": "search::ReplaceAll", }, }, { "context": "BufferSearchBar && !in_replace > Editor", "use_key_equivalents": true, "bindings": { "ctrl-enter": "editor::Newline", "shift-enter": "search::SelectPreviousMatch", }, }, { "context": "BufferSearchBar && !in_replace > Editor", "bindings": { "up": "search::PreviousHistoryQuery", "down": "search::NextHistoryQuery", }, }, { "context": "ProjectSearchBar", "use_key_equivalents": true, "bindings": { "escape": "project_search::ToggleFocus", "ctrl-shift-f": "search::FocusSearch", "ctrl-shift-h": "search::ToggleReplace", "alt-r": "search::ToggleRegex", // vscode }, }, { "context": "ProjectSearchBar > Editor", "bindings": { "up": "search::PreviousHistoryQuery", "down": "search::NextHistoryQuery", }, }, { "context": "ProjectSearchBar && in_replace > Editor", "use_key_equivalents": true, "bindings": { "enter": "search::ReplaceNext", "ctrl-alt-enter": "search::ReplaceAll", }, }, { "context": "ProjectSearchBar && !in_replace > Editor", "bindings": { "ctrl-enter": "editor::Newline", }, }, { "context": "ProjectSearchView", "use_key_equivalents": true, "bindings": { "escape": "project_search::ToggleFocus", "ctrl-shift-h": "search::ToggleReplace", "alt-r": "search::ToggleRegex", // vscode }, }, { "context": "Pane", "use_key_equivalents": true, "bindings": { "alt-1": ["pane::ActivateItem", 0], "alt-2": ["pane::ActivateItem", 1], "alt-3": ["pane::ActivateItem", 2], "alt-4": ["pane::ActivateItem", 3], "alt-5": ["pane::ActivateItem", 4], "alt-6": ["pane::ActivateItem", 5], "alt-7": ["pane::ActivateItem", 6], "alt-8": ["pane::ActivateItem", 7], "alt-9": ["pane::ActivateItem", 8], "alt-0": "pane::ActivateLastItem", "ctrl-pageup": "pane::ActivatePreviousItem", "ctrl-pagedown": "pane::ActivateNextItem", "ctrl-shift-pageup": "pane::SwapItemLeft", "ctrl-shift-pagedown": "pane::SwapItemRight", "ctrl-f4": ["pane::CloseActiveItem", { "close_pinned": false }], "ctrl-w": ["pane::CloseActiveItem", { "close_pinned": false }], "ctrl-shift-alt-t": ["pane::CloseOtherItems", { "close_pinned": false }], "ctrl-shift-alt-w": "workspace::CloseInactiveTabsAndPanes", "ctrl-k e": ["pane::CloseItemsToTheLeft", { "close_pinned": false }], "ctrl-k t": ["pane::CloseItemsToTheRight", { "close_pinned": false }], "ctrl-k u": ["pane::CloseCleanItems", { "close_pinned": false }], "ctrl-k w": ["pane::CloseAllItems", { "close_pinned": false }], "ctrl-k ctrl-w": "workspace::CloseAllItemsAndPanes", "back": "pane::GoBack", "alt--": "pane::GoBack", "alt-left": "pane::GoBack", "forward": "pane::GoForward", "alt-=": "pane::GoForward", "alt-right": "pane::GoForward", "f3": "search::SelectNextMatch", "shift-f3": "search::SelectPreviousMatch", "ctrl-shift-f": "project_search::ToggleFocus", "shift-alt-h": "search::ToggleReplace", "alt-l": "search::ToggleSelection", "alt-enter": "search::SelectAllMatches", "alt-c": "search::ToggleCaseSensitive", "alt-w": "search::ToggleWholeWord", "alt-f": "project_search::ToggleFilters", "ctrl-shift-enter": "project_search::ToggleAllSearchResults", "alt-r": "search::ToggleRegex", // "ctrl-shift-alt-x": "search::ToggleRegex", "ctrl-k shift-enter": "pane::TogglePinTab", }, }, // Bindings from VS Code { "context": "Editor", "use_key_equivalents": true, "bindings": { "ctrl-[": "editor::Outdent", "ctrl-]": "editor::Indent", "ctrl-alt-up": ["editor::AddSelectionAbove", { "skip_soft_wrap": true }], // Insert Cursor Above "ctrl-alt-down": ["editor::AddSelectionBelow", { "skip_soft_wrap": true }], // Insert Cursor Below "ctrl-shift-k": "editor::DeleteLine", "alt-up": "editor::MoveLineUp", "alt-down": "editor::MoveLineDown", "shift-alt-up": "editor::DuplicateLineUp", "shift-alt-down": "editor::DuplicateLineDown", "shift-alt-right": "editor::SelectLargerSyntaxNode", // Expand selection "shift-alt-left": "editor::SelectSmallerSyntaxNode", // Shrink selection "ctrl-shift-l": "editor::SelectAllMatches", // Select all occurrences of current selection "ctrl-f2": "editor::SelectAllMatches", // Select all occurrences of current word "ctrl-d": ["editor::SelectNext", { "replace_newest": false }], // editor.action.addSelectionToNextFindMatch / find_under_expand "ctrl-f3": ["editor::SelectNext", { "replace_newest": false }], // editor.action.addSelectionToNextFindMatch / find_under_expand "ctrl-k ctrl-d": ["editor::SelectNext", { "replace_newest": true }], // editor.action.moveSelectionToNextFindMatch / find_under_expand_skip "ctrl-shift-f3": ["editor::SelectPrevious", { "replace_newest": false }], // editor.action.addSelectionToNextFindMatch / find_under_expand "ctrl-k ctrl-i": "editor::Hover", "ctrl-k ctrl-b": "editor::BlameHover", "ctrl-k ctrl-f": "editor::FormatSelections", "ctrl-/": ["editor::ToggleComments", { "advance_downwards": false }], "ctrl-k ctrl-c": ["editor::ToggleComments", { "advance_downwards": false }], "ctrl-k ctrl-/": "editor::ToggleBlockComments", "shift-alt-a": "editor::ToggleBlockComments", "f8": ["editor::GoToDiagnostic", { "severity": { "min": "hint", "max": "error" } }], "shift-f8": ["editor::GoToPreviousDiagnostic", { "severity": { "min": "hint", "max": "error" } }], "f2": "editor::Rename", "f12": "editor::GoToDefinition", "alt-f12": "editor::GoToDefinitionSplit", "ctrl-f12": "editor::GoToImplementation", "shift-alt-f12": "editor::FindAllReferences", "ctrl-shift-\\": "editor::MoveToEnclosingBracket", "ctrl-shift-[": "editor::Fold", "ctrl-shift-]": "editor::UnfoldLines", "ctrl-k ctrl-l": "editor::ToggleFold", "ctrl-k ctrl-[": "editor::FoldRecursive", "ctrl-k ctrl-]": "editor::UnfoldRecursive", "ctrl-k ctrl-1": "editor::FoldAtLevel_1", "ctrl-k ctrl-2": "editor::FoldAtLevel_2", "ctrl-k ctrl-3": "editor::FoldAtLevel_3", "ctrl-k ctrl-4": "editor::FoldAtLevel_4", "ctrl-k ctrl-5": "editor::FoldAtLevel_5", "ctrl-k ctrl-6": "editor::FoldAtLevel_6", "ctrl-k ctrl-7": "editor::FoldAtLevel_7", "ctrl-k ctrl-8": "editor::FoldAtLevel_8", "ctrl-k ctrl-9": "editor::FoldAtLevel_9", "ctrl-k ctrl-0": "editor::FoldAll", "ctrl-k ctrl-j": "editor::UnfoldAll", "ctrl-space": "editor::ShowCompletions", "ctrl-shift-space": "editor::ShowWordCompletions", "ctrl-.": "editor::ToggleCodeActions", "ctrl-k r": "editor::RevealInFileManager", "ctrl-k p": "editor::CopyPath", "ctrl-\\": "pane::SplitRight", "alt-.": "editor::GoToHunk", "alt-,": "editor::GoToPreviousHunk", }, }, { "context": "Editor && extension == md", "use_key_equivalents": true, "bindings": { "ctrl-k v": "markdown::OpenPreviewToTheSide", "ctrl-shift-v": "markdown::OpenPreview", }, }, { "context": "Editor && extension == svg", "use_key_equivalents": true, "bindings": { "ctrl-k v": "svg::OpenPreviewToTheSide", "ctrl-shift-v": "svg::OpenPreview", }, }, { "context": "Editor && mode == full", "use_key_equivalents": true, "bindings": { "ctrl-shift-o": "outline::Toggle", "ctrl-g": "go_to_line::Toggle", }, }, { "context": "Workspace", "use_key_equivalents": true, "bindings": { // Change the default action on `menu::Confirm` by setting the parameter // "ctrl-alt-o": ["projects::OpenRecent", { "create_new_window": true }], "ctrl-r": ["projects::OpenRecent", { "create_new_window": false }], // Change to open path modal for existing remote connection by setting the parameter // "ctrl-shift-alt-o": "["projects::OpenRemote", { "from_existing_connection": true }]", "ctrl-shift-alt-o": ["projects::OpenRemote", { "from_existing_connection": false, "create_new_window": false }], "shift-alt-b": "branches::OpenRecent", "shift-alt-w": "git::Worktree", "shift-alt-enter": "toast::RunAction", "ctrl-shift-`": "workspace::NewTerminal", "ctrl-s": "workspace::Save", "ctrl-k ctrl-shift-s": "workspace::SaveWithoutFormat", "ctrl-shift-s": "workspace::SaveAs", "ctrl-n": "workspace::NewFile", "ctrl-shift-n": "workspace::NewWindow", "ctrl-`": "terminal_panel::Toggle", "f10": ["app_menu::OpenApplicationMenu", "Zed"], "alt-1": ["workspace::ActivatePane", 0], "alt-2": ["workspace::ActivatePane", 1], "alt-3": ["workspace::ActivatePane", 2], "alt-4": ["workspace::ActivatePane", 3], "alt-5": ["workspace::ActivatePane", 4], "alt-6": ["workspace::ActivatePane", 5], "alt-7": ["workspace::ActivatePane", 6], "alt-8": ["workspace::ActivatePane", 7], "alt-9": ["workspace::ActivatePane", 8], "ctrl-alt-b": "workspace::ToggleRightDock", "ctrl-b": "workspace::ToggleLeftDock", "ctrl-j": "workspace::ToggleBottomDock", "ctrl-alt-j": "multi_workspace::ToggleWorkspaceSidebar", "ctrl-alt-;": "multi_workspace::FocusWorkspaceSidebar", "ctrl-shift-y": "workspace::ToggleAllDocks", "alt-r": "workspace::ResetActiveDockSize", // For 0px parameter, uses UI font size value. "shift-alt--": ["workspace::DecreaseActiveDockSize", { "px": 0 }], "shift-alt-=": ["workspace::IncreaseActiveDockSize", { "px": 0 }], "shift-alt-0": "workspace::ResetOpenDocksSize", "ctrl-shift-f": "pane::DeploySearch", "ctrl-shift-h": ["pane::DeploySearch", { "replace_enabled": true }], "ctrl-shift-t": "pane::ReopenClosedItem", "ctrl-k ctrl-s": "zed::OpenKeymap", "ctrl-k ctrl-t": "theme_selector::Toggle", "ctrl-k ctrl-shift-t": "theme::ToggleMode", "ctrl-alt-super-p": "settings_profile_selector::Toggle", "ctrl-t": "project_symbols::Toggle", "ctrl-p": "file_finder::Toggle", "ctrl-shift-tab": ["tab_switcher::Toggle", { "select_last": true }], "ctrl-tab": "tab_switcher::Toggle", "ctrl-e": "file_finder::Toggle", "f1": "command_palette::Toggle", "ctrl-shift-p": "command_palette::Toggle", "ctrl-shift-m": "diagnostics::Deploy", "ctrl-shift-e": "project_panel::ToggleFocus", "ctrl-shift-b": "outline_panel::ToggleFocus", "ctrl-shift-g": "git_panel::ToggleFocus", "ctrl-shift-d": "debug_panel::ToggleFocus", "ctrl-shift-/": "agent::ToggleFocus", "ctrl-k s": "workspace::SaveAll", "ctrl-k n": "encoding_selector::Toggle", "ctrl-k m": "language_selector::Toggle", "ctrl-m ctrl-m": "toolchain::AddToolchain", "escape": "workspace::Unfollow", "ctrl-k ctrl-left": "workspace::ActivatePaneLeft", "ctrl-k ctrl-right": "workspace::ActivatePaneRight", "ctrl-k ctrl-up": "workspace::ActivatePaneUp", "ctrl-k ctrl-down": "workspace::ActivatePaneDown", "ctrl-k shift-left": "workspace::SwapPaneLeft", "ctrl-k shift-right": "workspace::SwapPaneRight", "ctrl-k shift-up": "workspace::SwapPaneUp", "ctrl-k shift-down": "workspace::SwapPaneDown", "ctrl-shift-x": "zed::Extensions", // All task parameters are captured and unchanged between reruns by default. // Use the `"reevaluate_context"` parameter to control this. "ctrl-shift-r": ["task::Rerun", { "reevaluate_context": false }], "alt-t": "task::Rerun", "shift-alt-t": "task::Spawn", "shift-alt-r": ["task::Spawn", { "reveal_target": "center" }], // also possible to spawn tasks by name: // "foo-bar": ["task::Spawn", { "task_name": "MyTask", "reveal_target": "dock" }] // or by tag: // "foo-bar": ["task::Spawn", { "task_tag": "MyTag" }], "f5": "debugger::Rerun", "ctrl-f4": "workspace::CloseActiveDock", "ctrl-w": "workspace::CloseActiveDock", }, }, { "context": "Workspace && debugger_running", "use_key_equivalents": true, "bindings": { // Unbind `f5` to avoid dispatching the `debugger::Rerun` as that is what `f5` is bound to in the `Workspace` // context. "f5": null, }, }, { "context": "Workspace && debugger_stopped", "use_key_equivalents": true, "bindings": { "f5": "debugger::Continue", }, }, { "context": "ThreadsSidebar", "use_key_equivalents": true, "bindings": { "ctrl-n": "agents_sidebar::NewThreadInGroup", "left": "menu::SelectParent", "right": "menu::SelectChild", "enter": "menu::Confirm", "ctrl-f": "agents_sidebar::FocusSidebarFilter", "ctrl-g": "agents_sidebar::ToggleThreadHistory", "shift-backspace": "agent::ArchiveSelectedThread", "ctrl-backspace": "agent::RemoveSelectedThread", "ctrl-tab": "agents_sidebar::ToggleThreadSwitcher", "ctrl-shift-tab": ["agents_sidebar::ToggleThreadSwitcher", { "select_last": true }], }, }, { "context": "ThreadsSidebar && not_searching", "use_key_equivalents": true, "bindings": { "space": "menu::Confirm", "shift-r": "agent::RenameSelectedThread", }, }, { "context": "ThreadSwitcher", "bindings": { "ctrl-tab": "agents_sidebar::ToggleThreadSwitcher", "ctrl-shift-tab": ["agents_sidebar::ToggleThreadSwitcher", { "select_last": true }], }, }, { "context": "ApplicationMenu", "use_key_equivalents": true, "bindings": { "f10": "menu::Cancel", "left": "app_menu::ActivateMenuLeft", "right": "app_menu::ActivateMenuRight", }, }, // Bindings from Sublime Text { "context": "Editor", "use_key_equivalents": true, "bindings": { "ctrl-u": "editor::UndoSelection", "ctrl-shift-u": "editor::RedoSelection", "ctrl-shift-j": "editor::JoinLines", "ctrl-alt-backspace": "editor::DeleteToPreviousSubwordStart", "shift-alt-h": "editor::DeleteToPreviousSubwordStart", "ctrl-alt-delete": "editor::DeleteToNextSubwordEnd", "shift-alt-d": "editor::DeleteToNextSubwordEnd", "ctrl-alt-left": "editor::MoveToPreviousSubwordStart", "ctrl-alt-right": "editor::MoveToNextSubwordEnd", "ctrl-shift-alt-left": "editor::SelectToPreviousSubwordStart", "ctrl-shift-alt-right": "editor::SelectToNextSubwordEnd", }, }, // Bindings from Atom { "context": "Pane", "use_key_equivalents": true, "bindings": { "ctrl-k up": "pane::SplitUp", "ctrl-k down": "pane::SplitDown", "ctrl-k left": "pane::SplitLeft", "ctrl-k right": "pane::SplitRight", }, }, // Bindings that should be unified with bindings for more general actions { "context": "Editor && renaming", "use_key_equivalents": true, "bindings": { "enter": "editor::ConfirmRename", }, }, { "context": "Editor && showing_completions", "use_key_equivalents": true, "bindings": { "enter": "editor::ConfirmCompletion", "shift-enter": "editor::ConfirmCompletionReplace", "tab": "editor::ComposeCompletion", }, }, { "context": "Editor && in_snippet && has_next_tabstop && !showing_completions", "use_key_equivalents": true, "bindings": { "tab": "editor::NextSnippetTabstop", }, }, { "context": "Editor && in_snippet && has_previous_tabstop && !showing_completions", "use_key_equivalents": true, "bindings": { "shift-tab": "editor::PreviousSnippetTabstop", }, }, // Bindings for accepting edit predictions // // alt-l is provided as an alternative to tab/alt-tab. and will be displayed in the UI. This is // because alt-tab may not be available, as it is often used for window switching. { "context": "Editor && edit_prediction", "use_key_equivalents": true, "bindings": { "alt-tab": "editor::AcceptEditPrediction", "alt-l": "editor::AcceptEditPrediction", "alt-k": "editor::AcceptNextWordEditPrediction", "alt-j": "editor::AcceptNextLineEditPrediction", }, }, { "context": "Editor && edit_prediction && edit_prediction_mode == eager && !showing_completions", "use_key_equivalents": true, "bindings": { "tab": "editor::AcceptEditPrediction", }, }, { "context": "Editor && showing_code_actions", "use_key_equivalents": true, "bindings": { "enter": "editor::ConfirmCodeAction", }, }, { "context": "Editor && (showing_code_actions || showing_completions)", "use_key_equivalents": true, "bindings": { "ctrl-p": "editor::ContextMenuPrevious", "up": "editor::ContextMenuPrevious", "ctrl-n": "editor::ContextMenuNext", "down": "editor::ContextMenuNext", "pageup": "editor::ContextMenuFirst", "pagedown": "editor::ContextMenuLast", }, }, { "context": "Editor && showing_signature_help && !showing_completions", "use_key_equivalents": true, "bindings": { "up": "editor::SignatureHelpPrevious", "down": "editor::SignatureHelpNext", }, }, // Custom bindings { "use_key_equivalents": true, "bindings": { "ctrl-shift-alt-f": "workspace::FollowNextCollaborator", // Only available in debug builds: opens an element inspector for development. "shift-alt-i": "dev::ToggleInspector", }, }, { "context": "!Terminal", [… truncated 23602 chars …]