Zed Editor keyboard shortcuts for Windows, Linux and Mac

Default key bindings of Zed 1.22.0, read from its repository keymaps, in a Windows / Linux column and a Mac column. Where Windows and Linux differ, an action gets two rows, and the brackets name the systems each row covers, such as (Windows, Mac) and (Linux). Collaboration, onboarding, developer tools and the Vim and Helix modes are left out. Many commands are sequences like Ctrl + K, Ctrl + S, and a key can act differently in editor, terminal and panels.

529 shortcuts in 20 sections. Checked row by row against Zed repository on . Edited by Jay.

General 32

A binding written with a comma, such as Ctrl + K, Ctrl + S, is a sequence: press the first chord, release it, then press the second.

On Windows Ctrl + K, S saves all files; on Linux the same sequence saves without formatting, and Save all is Ctrl + Alt + S.

ActionWindows / LinuxMac
Open command paletteLists every Zed action by name; type a few characters to filter, then confirm to run one.Ctrl+Shift+PorF1Cmd+Shift+P
Open file finderType part of a file name or path to narrow the project's files.Ctrl+PCmd+P
Search project symbolsSearches symbols across every file of the project, not only the open one.Ctrl+TCmd+T
Open file or folderA single chord on a Mac, a two-step sequence on Windows and Linux.Ctrl+KthenCtrl+OCmd+O
Open filesBound on Windows and Linux only; picks one or several files rather than a folder.Ctrl+O—
Open recent projectLists recently opened projects so you can switch to one.Ctrl+RCmd+Option+OorCtrl+R
Open remote projectStarts a remote project; this default binding does not reuse an existing connection.Ctrl+Alt+Shift+OCtrl+Cmd+O
New fileCtrl+NCmd+N
New windowCtrl+Shift+NCmd+Shift+N
Close windowCtrl+Shift+WCmd+Shift+W
Save fileIn a multibuffer it saves every file that has edits.Ctrl+SCmd+S
Save asWrites the active buffer under a new name.Ctrl+Shift+SCmd+Shift+S
Save all files (Windows, Mac)Ctrl+KthenSCmd+Option+S
Save all files (Linux)Ctrl+Alt+S—
Save without formatting (Windows, Mac)Writes the file to disk but leaves its formatting untouched.Ctrl+KthenCtrl+Shift+SCmd+KthenS
Save without formatting (Linux)Writes the file to disk but leaves its formatting untouched.Ctrl+KthenS—
Open settingsOpens the settings editor in its own window.Ctrl+,Cmd+,
Open settings fileOpens settings.json for editing the raw JSON instead of the settings editor.Ctrl+Alt+,Cmd+Option+,
Open keymap editorShows all actions with their default bindings and lets you rebind them.Ctrl+KthenCtrl+SCmd+KthenCmd+S
Open theme selectorCtrl+KthenCtrl+TCmd+KthenCmd+T
Toggle theme modeCtrl+KthenCtrl+Shift+TCmd+KthenCmd+Shift+T
Open extensionsOpens the page where extensions are installed and managed.Ctrl+Shift+XCmd+Shift+X
Open language selectorCtrl+KthenMCmd+KthenM
Open encoding selectorCtrl+KthenNCmd+KthenN
Reopen last pickerBrings back the picker you dismissed most recently in this window.Ctrl+KthenCtrl+PCmd+KthenCmd+P
Increase editor font sizeChanges the buffer font only; the default binding does not persist the new size.Ctrl+=Cmd+=
Decrease editor font sizeCtrl+-Cmd+-
Reset editor font sizeCtrl+0Cmd+0
Toggle full screenF11Ctrl+Cmd+ForFn+F
Open application menuWindows and Linux only; opens the Zed menu, and the same key closes it again.F10—
Show character paletteShows the palette for inserting special characters.Ctrl+Alt+SpaceCtrl+Cmd+Space
Quit ZedCtrl+QCmd+Q

Tabs and panes 41

One key can carry several actions, because the binding of the more specific context wins: an Editor or Pane binding overrides a Workspace binding with the same keys, which is why Alt + 1 selects a tab, not a pane, while a pane has focus.

ActionWindows / LinuxMac
Close tabCloses the active item in the pane; pinned tabs are not closed by this binding.Ctrl+WorCtrl+F4Cmd+W
Close other tabs (Windows, Mac)Closes the inactive tabs of the pane and leaves pinned ones open.Ctrl+Alt+Shift+TCmd+Option+T
Close other tabs (Linux)Closes the inactive tabs of the pane and leaves pinned ones open.Ctrl+Alt+T—
Close tabs to the leftCtrl+KthenECmd+KthenE
Close tabs to the rightCtrl+KthenTCmd+KthenT
Close saved tabsCloses every tab that has no unsaved changes.Ctrl+KthenUCmd+KthenU
Close all tabsApplies to the active pane only.Ctrl+KthenWCmd+KthenW
Close all tabs and panesClears every pane of the workspace, not just the active one.Ctrl+KthenCtrl+WCmd+KthenCmd+W
Close inactive tabs and panesKeeps only the tab you are working in.Ctrl+Alt+Shift+WCtrl+Cmd+Option+W
Reopen closed tabRestores the item that was closed most recently.Ctrl+Shift+TCmd+Shift+T
Pin or unpin tabCtrl+KthenShift+EnterCmd+KthenShift+Return
Go to next tabCtrl+Page DownCmd+}orCmd+Option+Right
Go to previous tabCtrl+Page UpCmd+{orCmd+Option+Left
Go to tab 1The digits 2 to 9 select the matching tab in the same way.Alt+1Ctrl+1
Go to last tabAlt+0Ctrl+0
Move tab leftSwaps the active tab with its left neighbour.Ctrl+Shift+Page UpCtrl+Shift+Page Up
Move tab rightSwaps the active tab with its right neighbour.Ctrl+Shift+Page DownCtrl+Shift+Page Down
Open tab switcherLists the pane's tabs by recent use; keep Ctrl held and press Tab again to move down the list.Ctrl+TabCtrl+Tab
Open tab switcher backwardsOpens the switcher with the last entry selected.Ctrl+Shift+TabCtrl+Shift+Tab
Next tab in tab switcherCtrl+DownCtrl+Down
Previous tab in tab switcherCtrl+UpCtrl+Up
Close tab from tab switcherCloses the highlighted tab without leaving the switcher.Ctrl+BackspaceCtrl+Backspace
Split editor rightOpens a second pane beside the current one.Ctrl+\Cmd+\
Split pane rightCtrl+KthenRightCmd+KthenRight
Split pane leftCtrl+KthenLeftCmd+KthenLeft
Split pane upCtrl+KthenUpCmd+KthenUp
Split pane downCtrl+KthenDownCmd+KthenDown
Focus pane to the leftCtrl+KthenCtrl+LeftCmd+KthenCmd+Left
Focus pane to the rightCtrl+KthenCtrl+RightCmd+KthenCmd+Right
Focus pane aboveCtrl+KthenCtrl+UpCmd+KthenCmd+Up
Focus pane belowCtrl+KthenCtrl+DownCmd+KthenCmd+Down
Focus pane 1Digits 2 to 9 pick the other panes; inside a pane on Windows and Linux the same key goes to tab 1.Alt+1Cmd+1
Swap with pane on the leftCtrl+KthenShift+LeftCmd+KthenShift+Left
Swap with pane on the rightCtrl+KthenShift+RightCmd+KthenShift+Right
Swap with pane aboveCtrl+KthenShift+UpCmd+KthenShift+Up
Swap with pane belowCtrl+KthenShift+DownCmd+KthenShift+Down
Zoom active paneEnlarges the focused pane; press it again to restore the layout.Shift+EscShift+Esc
Focus next window regionCycles through the editor, open panels and status bar; the second key still works while a debug session uses F6.F6orCtrl+F6F6orCmd+F6
Focus previous window regionShift+F6Shift+F6
Copy file pathCopies the path of the file in the active editor.Ctrl+KthenPCmd+KthenP
Reveal in file managerShows the current file in Finder or the system file manager.Ctrl+KthenRCmd+KthenR

Cursor movement 18

ActionWindows / LinuxMac
Move to previous word startCtrl+LeftOption+Left
Move to next word endCtrl+RightOption+Right
Move to previous subword startSubword motions also stop inside identifiers such as camelCase or snake_case names.Ctrl+Alt+LeftCtrl+Option+Left
Move to next subword endCtrl+Alt+RightCtrl+Option+Right
Move to line startStops at the indentation first and treats a soft-wrapped row as a line.HomeCmd+LeftorHome
Move to line endStops at the end of the soft-wrapped row.EndCmd+RightorEnd
Move to start of fileCtrl+HomeCmd+UporCmd+Home
Move to end of fileCtrl+EndCmd+DownorCmd+End
Move cursor up one pagePage UpPage Up
Move cursor down one pagePage DownPage Down
Scroll up one pageScrolls the view, unlike plain Page Up, which moves the cursor.Alt+Page UpCmd+Page Up
Scroll down one pageAlt+Page DownCmd+Page Down
Go to enclosing bracketCtrl+Shift+\Ctrl+MorCmd+|
Go to lineOpens a prompt for a line number in the active buffer.Ctrl+GCtrl+G
Go back (Windows, Mac)Returns to the previous cursor location in the navigation history.Alt+-orAlt+LeftCtrl+-
Go back (Linux)Returns to the previous cursor location in the navigation history.Ctrl+Alt+-—
Go forward (Windows, Mac)Moves forward again after going back.Alt+=orAlt+RightCtrl+_
Go forward (Linux)Moves forward again after going back.Ctrl+Alt+_—

Code navigation 19

ActionWindows / LinuxMac
Open file outlineLists the symbols of the active file in a picker.Ctrl+Shift+OCmd+Shift+O
Go to definitionIf the symbol has several definitions, they open together in a multibuffer.F12F12
Go to definition in splitAlt+F12Option+F12
Go to type definition (Linux, Mac)Ctrl+F12Cmd+F12
Type definition in split (Linux, Mac)Ctrl+Alt+F12Cmd+Option+F12
Go to implementation (Windows, Mac)Ctrl+F12Shift+F12
Go to implementation (Linux)Shift+F12—
Find all referencesLists every reference to the symbol under the cursor in a multibuffer.Alt+Shift+F12Option+Shift+F12
Show incoming callsLists the functions that call the one under the cursor; needs a language server with call hierarchy.Ctrl+KthenCtrl+HCmd+KthenCmd+H
Switch callers and calleesWorks while the call hierarchy picker is open.Ctrl+KthenCtrl+HCmd+KthenCmd+H
Go to next diagnosticCovers every severity from hint to error in the current file.F8F8
Go to previous diagnosticShift+F8Shift+F8
Open project diagnosticsShows errors and warnings from the whole project in one multibuffer.Ctrl+Shift+MCmd+Shift+M
Go to previous changeJumps back to the place of an earlier edit in this file.Ctrl+Shift+BackspaceCmd+Shift+Backspace
Go to next changeCtrl+Alt+Shift+BackspaceCmd+Option+Shift+Backspace
Open excerpt source fileIn a multibuffer, jumps to the file behind the excerpt under the cursor.Alt+EnterOption+Return
Open excerpt in splitOpens the excerpt's file in a neighbouring pane.Ctrl+Alt+EnterCmd+Option+Return
Expand excerptsShows more surrounding lines for every excerpt that holds a selection.Shift+EnterShift+Return
Open selections in multibufferCollects all current selections into one multibuffer tab.Alt+EnterOption+Return

Editing text 30

ActionWindows / LinuxMac
UndoCtrl+ZCmd+Z
RedoCtrl+Shift+ZorCtrl+YCmd+Shift+Z
CutCtrl+XorShift+DeleteCmd+X
CopyCtrl+CorCtrl+InsertCmd+C
PasteCtrl+VorShift+InsertCmd+V
Delete lineCtrl+Shift+KCmd+Shift+K
Move line upAlt+UpOption+Up
Move line downAlt+DownOption+Down
Duplicate line up (Windows, Mac)Inserts a copy of the current line above it.Alt+Shift+UpOption+Shift+Up
Duplicate line up (Linux)Inserts a copy of the current line above it.Ctrl+Alt+Shift+Up—
Duplicate line down (Windows, Mac)Inserts a copy of the current line below it.Alt+Shift+DownOption+Shift+Down
Duplicate line down (Linux)Inserts a copy of the current line below it.Ctrl+Alt+Shift+Down—
Join linesAppends the following line to the current one.Ctrl+Shift+JCtrl+J
Indent linesCtrl+]Cmd+]
Outdent linesCtrl+[Cmd+[
Insert tab or indentTabTab
Outdent or remove tabShift+TabShift+Tab
Toggle line commentComments or uncomments the selected lines, empty ones included.Ctrl+/Cmd+/
Toggle block commentWraps the selected text in block comment markers or removes them.Ctrl+KthenCtrl+/Cmd+KthenCmd+/
Insert line belowAdds the line without splitting the text at the cursor.Ctrl+EnterCmd+Return
Insert line aboveCtrl+Shift+EnterCmd+Shift+Return
Rewrap textReflows the text to the preferred line length.Ctrl+KthenQCmd+KthenQ
Toggle soft wrapCtrl+KthenZCmd+KthenZ
Delete previous wordCtrl+BackspaceOption+Backspace
Delete next wordCtrl+DeleteOption+Delete
Delete previous subwordStops at the capital letters and underscores inside an identifier.Ctrl+Alt+BackspaceCtrl+Option+Backspace
Delete next subwordCtrl+Alt+DeleteCtrl+Option+Delete
Open editor context menuKeyboard equivalent of a right-click, on Windows and Linux.Shift+F10orMenu—
Toggle line numbersCtrl+;Cmd+;
Cancel editor operationDismisses the current popup or a pending edit prediction.EscEsc

Code intelligence 34

ActionWindows / LinuxMac
Show completionsRequests the completion menu at the cursor.Ctrl+SpaceCtrl+Space
Show word completionsSuggests completions from words already present in the buffer.Ctrl+Shift+SpaceCtrl+Shift+Space
Accept completionInserts the highlighted suggestion from the completion menu.EnterReturn
Accept completion and replaceOverwrites the existing text instead of inserting next to it.Shift+EnterShift+Return
Compose completionStays available for language-server completions when Tab is taken by edit predictions.TabTab
Next item in completion menuAlso moves through the code actions menu.DownDownorCtrl+N
Previous item in completion menuUpUporCtrl+P
First item in completion menuPage UpPage Up
Last item in completion menuPage DownPage Down
Next snippet tabstopApplies while a snippet is being filled in and the completion menu is closed.TabTab
Previous snippet tabstopShift+TabShift+Tab
Show code actionsLists the code actions available at the cursor; a task bound to the line appears first.Ctrl+.Cmd+.
Apply code actionEnterReturn
Rename symbolStarts a rename of the symbol at the cursor; Enter confirms it.F2F2
Show hover informationOpens the hover popover for the symbol at the cursor from the keyboard.Ctrl+KthenCtrl+ICmd+KthenCmd+I
Show signature helpDisplays the parameters of the function call being typed.Ctrl+ICmd+I
Next signature overloadDownDown
Previous signature overloadUpUp
Format document (Windows, Mac)Formats the whole buffer rather than a selection.Alt+Shift+FCmd+Shift+I
Format document (Linux)Formats the whole buffer rather than a selection.Ctrl+Shift+I—
Format selection (Windows)Bound on Windows only, and only works when the active formatter can format ranges.Ctrl+KthenCtrl+F—
Organize importsAlt+Shift+OOption+Shift+O
Toggle inlay hintsCtrl+Shift+;Ctrl+:
Show blame for current lineShows who last changed the line under the cursor.Ctrl+KthenCtrl+BCmd+KthenCmd+B
Accept edit predictionAccepts the whole prediction; Alt + L exists because the system often takes Alt + Tab for window switching.Alt+LorAlt+TabOption+Tab
Accept next word of predictionTakes the prediction only up to the next word boundary.Alt+KCtrl+Cmd+Right
Accept next line of predictionTakes the prediction up to the next line break.Alt+JCtrl+Cmd+Down
Next edit predictionAlt+]Option+Tab
Previous edit predictionAlt+[Option+Shift+Tab
Request edit predictionAsks for a prediction manually when none is showing.Alt+\Option+Tab
Toggle edit predictions (Windows, Mac)Ctrl+Alt+ECtrl+Cmd+E
Toggle edit predictions (Linux)Ctrl+Alt+Shift+E—
Open edit prediction menu (Windows, Mac)Ctrl+Shift+ICtrl+Cmd+I
Open edit prediction menu (Linux)Ctrl+Alt+Shift+I—

Selection and multiple cursors 28

ActionWindows / LinuxMac
Select allCtrl+ACmd+A
Select lineCtrl+LCmd+L
Add next occurrenceAdds a cursor at the next match of the current selection.Ctrl+DCmd+D
Add previous occurrence (Windows, Mac)Ctrl+Shift+F3Ctrl+Cmd+D
Add previous occurrence (Linux)Ctrl+Shift+Up—
Skip to next occurrenceMoves the newest cursor to the following match instead of adding another one.Ctrl+KthenCtrl+DCmd+KthenCmd+D
Skip to previous occurrence (Linux, Mac)Ctrl+KthenCtrl+Shift+DCmd+KthenCtrl+Cmd+D
Select all occurrencesPuts a cursor on every match of the selection; in search results it selects all matches for editing.Ctrl+Shift+LorCtrl+F2Cmd+Shift+LorCmd+F2
Add cursor above (Windows, Mac)Skips soft-wrapped rows, so the new cursor lands on the previous real line.Ctrl+Alt+UpCmd+Option+Up
Add cursor above (Linux)Skips soft-wrapped rows, so the new cursor lands on the previous real line.Alt+Shift+Up—
Add cursor below (Windows, Mac)Ctrl+Alt+DownCmd+Option+Down
Add cursor below (Linux)Alt+Shift+Down—
Expand selection to syntax nodeGrows the selection to the next enclosing node of the syntax tree.Alt+Shift+RightCtrl+Shift+RightorCtrl+Cmd+Right
Shrink selection to syntax nodeAlt+Shift+LeftCtrl+Shift+Left
Select enclosing symbol (Windows, Mac)Selects the whole function or other symbol that contains the cursor.Alt+Shift+ECmd+Option+E
Select enclosing symbol (Linux)Selects the whole function or other symbol that contains the cursor.Ctrl+Alt+E—
Undo last selection changeSteps the cursors back without undoing any text edit.Ctrl+UCmd+U
Redo last selection changeCtrl+Shift+UCmd+Shift+U
Select to previous word startCtrl+Shift+LeftOption+Shift+Left
Select to next word endCtrl+Shift+RightOption+Shift+Right
Select to previous subword startCtrl+Alt+Shift+LeftCtrl+Option+Shift+Left
Select to next subword endCtrl+Alt+Shift+RightCtrl+Option+Shift+Right
Select to line startShift+HomeCmd+Shift+LeftorShift+Home
Select to line endShift+EndCmd+Shift+RightorShift+End
Select to start of fileCtrl+Shift+HomeCmd+Shift+Up
Select to end of fileCtrl+Shift+EndCmd+Shift+Down
Extend selection up one pageShift+Page UpShift+Page Up
Extend selection down one pageShift+Page DownShift+Page Down

Folding 8

The Mac and Linux keymaps name a shifted symbol directly (Cmd + {, Ctrl + ?), the Windows keymap writes Shift plus the base key (Ctrl + Shift + [, Ctrl + Shift + /). On a US keyboard both spellings are the same keys, so such rows are listed once.

ActionWindows / LinuxMac
Fold code blockCollapses the block at the cursor.Ctrl+Shift+[Cmd+Option+[
Unfold linesReopens the folded lines at the cursor.Ctrl+Shift+]Cmd+Option+]
Toggle foldFolds the current position, or unfolds it when it is already folded.Ctrl+KthenCtrl+LCmd+KthenCmd+L
Fold recursivelyCollapses the current block together with all the blocks nested in it.Ctrl+KthenCtrl+[Cmd+KthenCmd+[
Unfold recursivelyCtrl+KthenCtrl+]Cmd+KthenCmd+]
Fold allCollapses every foldable region of the buffer.Ctrl+KthenCtrl+0Cmd+KthenCmd+0
Unfold allCtrl+KthenCtrl+JCmd+KthenCmd+J
Fold at level 1The digits 2 to 9 fold at the deeper nesting levels in the same way.Ctrl+KthenCtrl+1Cmd+KthenCmd+1

Search and replace 31

ActionWindows / LinuxMac
Find in fileOpens the search bar for the active buffer.Ctrl+FCmd+F
Find and replace in fileWindows and Linux only; opens buffer search with the replace field showing.Ctrl+H—
Toggle replace in search barShows or hides the replace field once the buffer search bar is open.Ctrl+H—
Search in projectResults open in a multibuffer where the matches can be edited in place.Ctrl+Shift+FCmd+Shift+F
Replace in projectOpens project search with the replace field enabled.Ctrl+Shift+HCmd+Shift+H
Open text finderA quick picker that finds a string anywhere in the project and opens the file.Ctrl+Alt+FCmd+Option+F
Find nextF3Cmd+G
Find previousShift+F3Cmd+Shift+G
Next match from search barEnterReturn
Previous match from search barShift+EnterShift+Return
Select all search matchesTurns every match into a selection so they can be edited together.Alt+EnterOption+Return
Toggle case-sensitive searchAlt+CCmd+Option+C
Toggle whole-word searchAlt+WCmd+Option+W
Toggle regex searchAlt+RCmd+Option+X
Toggle replace field (Windows, Mac)Shows or hides the replace field of the search in the active pane.Alt+Shift+HCmd+Shift+H
Toggle replace field (Linux)Shows or hides the replace field of the search in the active pane.Ctrl+Alt+Shift+H—
Toggle search in selection (Windows, Mac)Restricts buffer search to the selected text.Alt+LCmd+Option+L
Toggle search in selection (Linux)Restricts buffer search to the selected text.Ctrl+Alt+Shift+L—
Replace next matchWorks while the cursor is in the replace field.EnterReturn
Replace all matchesCtrl+EnterCmd+Return
Replace all in projectApplies the replacement to every match of the project search.Ctrl+Alt+EnterCmd+Return
Previous search queryRecalls earlier queries from the search history.UpUp
Next search queryDownDown
Return focus to editorMoves the cursor from the search bar back into the buffer.TabTab
Close search barEscEsc
Search in new tabRuns the query in a new project search tab.Ctrl+EnterCmd+Return
Switch between query and resultsMoves focus from the project search bar to the result list and back.EscEsc
Toggle search filters (Windows, Mac)Shows or hides the filter fields of project search.Alt+FCmd+Shift+J
Toggle search filters (Linux)Shows or hides the filter fields of project search.Ctrl+Alt+F—
Collapse or expand all resultsCtrl+Shift+EnterCmd+Shift+Return
Include ignored files in finderWorks in the file finder and adds ignored files to the list.Ctrl+Shift+ICmd+Shift+I

Panels and docks 26

ActionWindows / LinuxMac
Toggle left dockCtrl+BCmd+B
Toggle right dockCtrl+Alt+BCmd+RorCmd+Option+B
Toggle bottom dockCtrl+JCmd+J
Toggle all docks (Windows, Mac)Hides every open dock at once, or brings them back.Ctrl+Shift+YCmd+Option+Y
Toggle all docks (Linux)Hides every open dock at once, or brings them back.Ctrl+Alt+Y—
Close active dockCtrl+Alt+WCtrl+Option+W
Focus project panelMoves focus into the file tree, or back out when the panel already has it.Ctrl+Shift+ECmd+Shift+E
Reveal file in project panelFrom an editor, selects the current file in the project panel.Ctrl+Shift+ECmd+Shift+E
Focus outline panelThe panel keeps a tree of the current file's symbols in view.Ctrl+Shift+BCmd+Shift+B
Focus git panelCtrl+Shift+GCtrl+Shift+G
Focus debug panelCtrl+Shift+DCmd+Shift+D
Focus agent panelCtrl+Shift+/Cmd+?
Toggle terminal panelCtrl+`Ctrl+`
Focus collaboration panelOn Windows and Linux the binding is inactive while a terminal has focus.Ctrl+Shift+CCmd+Shift+C
Toggle threads sidebarThe sidebar lists agent threads grouped by project.Ctrl+Alt+JCmd+Option+J
Focus threads sidebarMoves focus to or from the sidebar without closing it.Ctrl+Alt+;Cmd+Option+;
Increase active dock size (Windows, Mac)With the default 0 px argument the step equals the UI font size.Alt+Shift+=Ctrl+Option+=
Increase active dock size (Linux)With the default 0 px argument the step equals the UI font size.Ctrl+Alt+=—
Decrease active dock size (Windows, Mac)Alt+Shift+-Ctrl+Option+-
Decrease active dock size (Linux)Ctrl+Alt+-—
Reset active dock size (Windows, Mac)Alt+RCtrl+Option+0
Reset active dock size (Linux)Ctrl+Alt+0—
Increase size of all docks (Linux, Mac)Resizes all visible docks by the same amount.Ctrl+Alt++Ctrl+Option++
Decrease size of all docks (Linux, Mac)Ctrl+Alt+_Ctrl+Option+_
Reset size of all docks (Windows, Mac)Alt+Shift+0Ctrl+Option+)
Reset size of all docks (Linux)Ctrl+Alt+)—

Project panel 29

ActionWindows / LinuxMac
Expand selected folderRightRight
Collapse selected folderLeftLeft
Expand all foldersCtrl+RightCmd+Right
Collapse all foldersCtrl+LeftCmd+Left
Open selected fileApplies when no file name is being edited in the panel.SpaceSpace
New file in project panelCtrl+NCmd+N
New folder (Windows, Mac)Alt+NCmd+Option+N
New folder (Linux)Ctrl+Alt+N—
Rename file or folderF2orEnterF2orReturn
Cut file or folderCtrl+XCmd+X
Copy file or folderCtrl+CorCtrl+InsertCmd+C
Paste file or folderCtrl+VorShift+InsertCmd+V
Undo file operationReverts the last change made to files from the project panel.Ctrl+ZCmd+Z
Redo file operationCtrl+Shift+ZCmd+Shift+Z
Move to trashAsks for confirmation before the entry goes to the trash.DeleteorBackspaceDeleteorBackspace
Delete permanentlyRemoves the entry after a confirmation prompt instead of using the trash.Shift+DeleteCmd+Delete
Copy path of selected entry (Windows, Mac)Alt+Shift+CCmd+Option+C
Copy path of selected entry (Linux)Ctrl+Alt+C—
Copy relative path of entry (Windows, Mac)Ctrl+KthenCtrl+Shift+CCmd+Option+Shift+C
Copy relative path of entry (Linux)Ctrl+Alt+Shift+C—
Reveal entry in file managerCtrl+Alt+RCmd+Option+R
Open with default appHands the selected file to the application the system associates with it.Ctrl+Shift+EnterCtrl+Shift+Return
Compare marked filesOpens a diff view when exactly two files are marked.Alt+DOption+D
Search in selected folder (Windows, Mac)Starts a project search limited to the selected directory.Ctrl+KthenCtrl+Shift+FCmd+Option+Shift+F
Search in selected folder (Linux)Starts a project search limited to the selected directory.Ctrl+Alt+Shift+F—
Open project panel context menuShift+F10orMenuShift+F10
Open outline entryIn the outline panel, jumps to the selected symbol in the editor.SpaceSpace
Expand outline entryRightRight
Collapse outline entryLeftLeft

Git 42

ActionWindows / LinuxMac
Show git blameA two-step sequence that shows blame information for the whole file.Alt+GthenBCmd+Option+GthenB
Open modified filesOpens all files that git reports as modified.Alt+GthenMCmd+Option+GthenM
Review diffAlt+GthenRCmd+Option+GthenR
Toggle selected diff hunksExpands or collapses the inline diff for the hunks under the selection.Ctrl+'Cmd+'
Expand all diff hunksCtrl+"Cmd+"
Go to next hunkCtrl+F8Cmd+F8
Go to previous hunkCtrl+Shift+F8Cmd+Shift+F8
Stage hunk and go to nextAlt+YCmd+Y
Unstage hunk and go to nextAlt+Shift+YCmd+Shift+Y
Toggle staged state of hunk (Linux, Mac)Ctrl+Alt+YCmd+Option+Y
Restore hunkDiscards the selected hunks and returns them to their original state.Ctrl+KthenCtrl+RCmd+Option+Z
Open recent branches (Windows, Mac)Alt+Shift+BCtrl+Cmd+B
Open recent branches (Linux)Ctrl+Alt+Shift+B—
Open worktree picker (Windows, Mac)Alt+Shift+WCtrl+Cmd+W
Open worktree picker (Linux)Ctrl+Alt+Shift+W—
Show Changes tabCtrl+1Cmd+1
Show History tabCtrl+2Cmd+2
Stage fileAlt+YCmd+Y
Unstage fileAlt+Shift+YCmd+Shift+Y
Toggle staged state of entryStages or unstages the entry selected in the changes list.SpaceSpace
Stage range of entriesStages everything between the anchor entry and the cursor.Shift+SpaceShift+Space
Stage all changesCtrl+SpaceCtrl+Cmd+Y
Unstage all changesCtrl+Shift+SpaceCtrl+Cmd+Shift+Y
Discard changes in fileReturns the file to its last committed state after a confirmation prompt.DeleteorBackspaceDeleteorBackspace
Focus commit messageMoves from the changes list to the commit message editor.TabTab
Focus changes listMoves from the commit message editor back to the list of changes.TabTab
CommitCreates a commit from the staged changes with the message in the commit editor.Ctrl+EnterCmd+Return
Amend last commitCtrl+Shift+EnterCmd+Shift+Return
Generate commit messageAsks the configured AI model to draft the message.Alt+LOption+Tab
Expand commit editorShift+EscShift+Esc
FetchLike the other remote commands it is a sequence that works while the git panel has focus.Ctrl+GthenCtrl+GCtrl+GthenCtrl+G
PullCtrl+GthenDownCtrl+GthenDown
Pull with rebaseCtrl+GthenShift+DownCtrl+GthenShift+Down
PushCtrl+GthenUpCtrl+GthenUp
Force pushCtrl+GthenShift+UpCtrl+GthenShift+Up
Open project diffOpens the Project Diff, which shows all changes git has captured.Ctrl+GthenDCtrl+GthenD
Discard all tracked changesReturns every tracked file to its last committed state.Ctrl+GthenBackspaceCtrl+GthenBackspace
Trash untracked filesCtrl+GthenShift+BackspaceCtrl+GthenShift+Backspace
Delete branch in pickerCtrl+Shift+BackspaceCmd+Shift+Backspace
Apply stashCtrl+SpaceCtrl+Space
Pop stashCtrl+Shift+SpaceCtrl+Shift+Space
Drop stashCtrl+Shift+BackspaceCtrl+Shift+Backspace

Terminal 22

ActionWindows / LinuxMac
New terminalCtrl+Shift+`Ctrl+~
Copy in terminalCtrl + C goes to the shell, so copying adds Shift; Windows also copies with Ctrl + C while text is selected.Ctrl+Shift+CorCtrl+InsertCmd+C
Paste in terminalCtrl+Shift+VorShift+InsertCmd+V
Clear terminalCtrl+Shift+LCmd+K
Find in terminalCtrl+Shift+FCmd+F
Select all terminal textCtrl+Shift+ACmd+A
Scroll terminal up one pageShift+Page UpShift+Page UporCmd+Up
Scroll terminal down one pageShift+Page DownShift+Page DownorCmd+Down
Scroll terminal up one lineShift+UpShift+Up
Scroll terminal down one lineShift+DownShift+Down
Scroll to top of terminalShift+HomeShift+HomeorCmd+Home
Scroll to bottom of terminalShift+EndShift+EndorCmd+End
Toggle terminal vi modeCtrl+Shift+SpaceCtrl+Shift+Space
Split terminal rightCtrl+Shift+5Cmd+DorCtrl+Option+Right
Rerun task in terminalRuns again the task that this terminal executed last.Ctrl+Shift+RorCtrl+Alt+RCmd+Option+R
Inline assist in terminal (Windows, Mac)Opens the inline assistant prompt for the terminal.Ctrl+ICtrl+Return
Inline assist in terminal (Linux)Opens the inline assistant prompt for the terminal.Ctrl+Enter—
Send interrupt to shellPasses Ctrl + C through to the running program.Ctrl+CCtrl+C
Move back one word in shellSends the escape sequence Esc b to the terminal program.Alt+BOption+LeftorOption+B
Move forward one word in shellAlt+FOption+RightorOption+F
Delete previous word in shellCtrl+BackspaceorCtrl+WCtrl+Backspace
Close terminal tabWindows and Linux only; a Mac closes the terminal tab with the ordinary close-tab key.Ctrl+Shift+W—

Tasks and debugging 21

ActionWindows / LinuxMac
Run a taskOpens the task picker with the tasks available for the current file.Alt+Shift+TCmd+Shift+R
Rerun last taskRepeats the most recent task with the context it captured the first time.Ctrl+Shift+RCmd+Option+R
Start debuggingOpens the new process modal with the debug tasks found for the project.F4F4
Rerun last debug sessionF5F5
ContinueResumes all threads until the next breakpoint; active only while execution is paused.F5F5
Step overF10F10orF7
Step intoF11F11
Step outShift+F11Shift+F11
Pause programTakes over F6 only while a debug session is live.F6F6
Stop debuggingShift+F5Shift+F5
Restart debug sessionStarts the current session again with the same configuration.Ctrl+Shift+F5Cmd+Shift+F5
Toggle breakpointAdds or removes a breakpoint on the line of the cursor.F9F9
Edit log breakpointEdits the message that a log breakpoint writes when it is hit.Shift+F9Shift+F9
Enable or disable breakpointApplies to the entry selected in the breakpoint list.SpaceSpace
Remove breakpoint from listBackspaceBackspace
Open thread pickerCtrl+TCmd+T
Open session pickerCtrl+ICmd+I
Edit variable valueEnterReturn
Copy variable valueCtrl+CCmd+C
Add variable to watchAlt+EnterOption+Return
Watch console expressionAlt+EnterOption+Return

Agent panel 35

ActionWindows / LinuxMac
New agent threadWorks while the agent panel has focus.Ctrl+NCmd+N
Open new thread menuOpens the menu for choosing which agent the new thread uses.Ctrl+Alt+Shift+NCmd+Option+Shift+N
Open agent options menuAlt+Shift+ICmd+Option+M
Open agent settings (Windows, Mac)Alt+Shift+CCmd+Option+C
Open agent settings (Linux)Ctrl+Alt+C—
Switch to recent threadCycles forward through recent threads without opening the sidebar.Ctrl+TabCtrl+Tab
Switch to recent thread backwardsCtrl+Shift+TabCtrl+Shift+Tab
Add selection to agent threadSends the selected editor or terminal text to the agent panel as context.Ctrl+Shift+.Cmd+>
Open inline assistantPrompts for a change at the cursor; with several cursors the same prompt runs at each one.Ctrl+EnterCtrl+Return
Expand message editorEnlarges the prompt editor when a message needs more room.Alt+Shift+EscOption+Shift+Esc
Open model selector (Windows, Mac)Alt+Shift+/Cmd+Option+/
Open model selector (Linux)Ctrl+Alt+/—
Cycle favorite modelsSwitches between favourited models without opening the model selector.Alt+LorAlt+TabOption+Tab
Open profile selectorCtrl+ICmd+I
Cycle agent modeShift+TabShift+Tab
Manage agent profiles (Windows, Mac)Alt+Shift+PCmd+Option+P
Manage agent profiles (Linux)Ctrl+Alt+P—
Manage agent skills (Windows, Mac)Alt+Shift+LCmd+Option+L
Manage agent skills (Linux)Ctrl+Alt+L—
Toggle thinking modeApplies to models that support extended thinking.Ctrl+Alt+KCmd+Option+K
Cycle thinking effortCtrl+'Ctrl+'
Open thinking effort menuCtrl+Alt+'Cmd+Option+'
Toggle fast modeCtrl+Alt+.Cmd+Option+.
Allow tool call onceApproves the pending operation for this time only.Alt+Shift+ACmd+Y
Always allow tool callApproves the operation and remembers the choice.Alt+Shift+QCmd+Option+Y
Reject tool callAlt+Shift+XCmd+Option+Z
Open permission optionsCtrl+Alt+ACmd+Option+A
Next inline assist suggestionCycles through the alternative results the inline assistant produced.Ctrl+]Ctrl+]
Previous inline assist suggestionCtrl+[Ctrl+[
Review agent changesOpens a multibuffer tab with every edit the agent made.Ctrl+Shift+RCtrl+Shift+R
Keep agent changeAccepts the agent edit under the cursor.Alt+YCmd+Y
Reject agent changeCtrl+Alt+ZCmd+Option+Z
Keep all agent changesAlt+Shift+YOption+Shift+Y
Reject all agent changesAlt+Shift+ZOption+Shift+Z
Undo last rejectRestores the changes that the most recent reject removed.Alt+Shift+UOption+Shift+U

Agent messages and threads 25

ActionWindows / LinuxMac
Send message to agentDefault send key; with the use_modifier_to_send setting it inserts a newline instead.EnterReturn
Send message and follow agentSubmits the prompt and follows the agent as it reads and edits files.Ctrl+EnterCmd+Return
Send message immediatelyInterrupts the current generation instead of queueing the message.Ctrl+Shift+EnterCmd+Shift+Return
Send next queued messageCtrl+Alt+Shift+EnterCmd+Option+Shift+Return
Edit first queued messageCtrl+Alt+ECtrl+Cmd+E
Remove first queued messageCtrl+Shift+BackspaceCmd+Shift+Backspace
Toggle steering for queued messageWhen on, the first queued message interrupts the agent at its next step.Ctrl+Alt+SCtrl+Cmd+S
Clear message queueCtrl+Alt+BackspaceCmd+Option+Backspace
Paste as raw textPastes into the message editor without the automatic formatting of pasted content.Ctrl+Shift+VCmd+Shift+V
Open add context menuCtrl+;Ctrl+;
Search in threadCtrl+FCmd+F
Next match in threadF3Cmd+G
Previous match in threadShift+F3Cmd+Shift+G
Scroll thread up one pageScrolls the conversation while focus stays in the message editor.Ctrl+Alt+Page UpCtrl+Page Up
Scroll thread down one pageCtrl+Alt+Page DownCtrl+Page Down
Scroll to top of threadCtrl+Alt+HomeCtrl+Home
Scroll to bottom of threadCtrl+Alt+EndCtrl+End
Scroll to previous user messageCtrl+Alt+Shift+Page UpCtrl+Option+Page Up
Scroll to next user messageCtrl+Alt+Shift+Page DownCtrl+Option+Page Down
New thread in project groupIn the threads sidebar, starts a thread scoped to the selected project.Ctrl+NCmd+N
Search threadsMoves focus to the filter field of the threads sidebar.Ctrl+FCmd+F
Toggle thread historyThe history view holds all threads, archived ones included.Ctrl+GCmd+G
Archive selected threadShift+BackspaceShift+Backspace
Remove selected threadCtrl+BackspaceCmd+Shift+Backspace
Rename selected threadShift+RShift+R

Keymap editor and settings window 17

ActionWindows / LinuxMac
Search keymapPuts the cursor in the search field of the keymap editor.Ctrl+FCmd+F
Search by keystroke (Windows, Mac)Lets you press a key combination to find the actions bound to it.Alt+FCmd+Option+F
Search by keystroke (Linux)Lets you press a key combination to find the actions bound to it.Ctrl+Alt+F—
Show only conflicting bindingsAlt+CCmd+Option+C
Edit selected bindingEnterReturn
Add binding for actionCreates another key binding for the action in the selected row.Alt+EnterOption+Return
Create binding from scratchOpens a dialog that also asks which action to bind.Ctrl+KCmd+K
Copy action nameCtrl+CCmd+C
Copy binding contextCtrl+Shift+CCmd+Shift+C
Show bindings with same keysCtrl+TCmd+T
Open keymap fileFrom the keymap editor, opens keymap.json, where your custom bindings are stored.Ctrl+ECmd+E
Search settingsCtrl+FCmd+F
Open settings as JSONIn the settings window, opens the file behind the page you are viewing.Ctrl+,Cmd+,
Switch between sidebar and contentCtrl+Shift+ECmd+Shift+E
Next settings fileCtrl+Page DownCmd+}
Previous settings fileCtrl+Page UpCmd+{
Close settings windowCtrl+WorEscCmd+WorEsc

Previews and notebooks 25

ActionWindows / LinuxMac
Open Markdown previewAvailable in Markdown files; shows the rendered document.Ctrl+Shift+VCmd+Shift+V
Open Markdown preview to the sideShows the rendered view in a split next to the source.Ctrl+KthenVCmd+KthenV
Close preview and return to editorCtrl+Shift+VCmd+Shift+V
Scroll preview up one elementAlt+UpOption+Up
Scroll preview down one elementAlt+DownOption+Down
Open SVG previewCtrl+Shift+VCmd+Shift+V
Open table previewOffered for CSV, TSV and other delimiter-separated files.Ctrl+Shift+VCmd+Shift+V
Zoom in on imageCtrl+=Cmd+=
Zoom out of imageCtrl+-Cmd+-
Reset image zoomCtrl+0Cmd+0
Show image at actual sizeCtrl+1Cmd+1
Fit image to viewCtrl+Shift+0Cmd+Shift+0
Run code in REPLExecutes the selection, line or code block and shows the result below it.Ctrl+Shift+EnterCtrl+Shift+Return
Run in REPL in placeCtrl+Alt+EnterCtrl+Option+Return
Run cell and advanceShift+EnterShift+Return
Run cellExecutes the current notebook cell and keeps it selected.Ctrl+EnterCmd+Return
Run all cellsCtrl+Shift+EnterCmd+Shift+Return
Move cell upAlt+UpOption+Up
Move cell downAlt+DownOption+Down
Add code cellCtrl+MCmd+M
Add Markdown cellCtrl+Shift+MCmd+Shift+M
Restart kernelCtrl+Shift+RCmd+Shift+R
Interrupt kernelStops the execution that is currently running.Ctrl+CCmd+C
Edit selected cellMoves from command mode into the editor of the current cell.EnterReturn
Leave cell editorReturns from the cell's editor to command mode.EscEsc

Mac only 32

ActionWindows / LinuxMac
Hide Zed—Cmd+H
Hide other apps—Cmd+Option+H
Minimize window—Cmd+M
Delete to line startRemoves everything between the cursor and the beginning of the line.—Cmd+Backspace
Delete to line end—Cmd+Delete
Cut to end of lineEmacs-style kill that stores the text in the kill ring.—Ctrl+K
Yank from kill ringInserts the text most recently cut with the kill command.—Ctrl+Y
Transpose charactersSwaps the characters on either side of the cursor.—Ctrl+T
Move to start of full lineEmacs-style key that ignores soft wraps and goes to the start of the whole line.—Ctrl+A
Move to end of full line—Ctrl+E
Move to start of paragraph—Ctrl+Up
Move to end of paragraph—Ctrl+Down
Select to start of paragraph—Ctrl+Shift+Up
Select to end of paragraph—Ctrl+Shift+Down
Center cursor on screenScrolls the view until the cursor line sits in the middle.—Ctrl+L
Select previous sibling nodeMoves the selection to the preceding sibling in the syntax tree.—Ctrl+Cmd+Up
Select next sibling node—Ctrl+Cmd+Down
Add cursor on row aboveCounts soft-wrapped rows, unlike the main add-cursor key.—Ctrl+Cmd+P
Add cursor on row below—Ctrl+Cmd+N
Go to declaration—Ctrl+F12
Go to declaration in split—Ctrl+Option+F12
Use selection for findPuts the selected text, or the word at the cursor, into the search field.—Cmd+E
Find within selectionOpens buffer search already limited to the selected text.—Cmd+Option+L
Move to start of excerptIn a multibuffer this replaces the jump to the top of the file.—Cmd+Up
Move to start of next excerpt—Cmd+Down
Duplicate file or folderMakes a copy of the file or folder selected in the project panel.—Cmd+D
Move to trash without prompt—Cmd+Backspace
Discard file changes without prompt—Cmd+BackspaceorCmd+Delete
Delete to line start in shellSends Ctrl + U to the program running in the terminal.—Cmd+Backspace
Move to line start in shellPasses Ctrl + A on to the shell instead of handling it in Zed.—Cmd+Left
Delete to line end in shell—Cmd+Delete
Split terminal down—Ctrl+Option+Down

Notes

If you know VS Code

Ctrl + Shift + P, Ctrl + P and Ctrl + Shift + F (Cmd + Shift + P, Cmd + P and Cmd + Shift + F on a Mac) are the command palette, file finder and project search, exactly where VS Code puts them. Ctrl + D adds the next occurrence and Ctrl + Shift + L selects all of them. F12 goes to a definition and Alt + Shift + F12 finds references. The sequences Ctrl + K, Ctrl + S (keymap editor) and Ctrl + K, Ctrl + T (theme selector) follow the same Ctrl + K prefix convention, and the Windows keymap also takes Alt + Shift + F for formatting and Ctrl + Alt + Up for a cursor above from VS Code.

What is Zed-specific

Zed selects by syntax tree, not by characters: Alt + Shift + Right (Ctrl + Shift + Right on a Mac) expands the selection to the enclosing node and Alt + Shift + Left shrinks it, and the Mac keymap adds Ctrl + Cmd + Up and Ctrl + Cmd + Down for the previous and next sibling node. Selecting the enclosing symbol — the whole function you are in — is Cmd + Option + E on a Mac, Alt + Shift + E on Windows and Ctrl + Alt + E on Linux. Panes and docks are first-class: Ctrl + \ splits right, Ctrl + K, Ctrl + Left and its siblings move focus between panes, Ctrl + B, Ctrl + Alt + B and Ctrl + J toggle the left, right and bottom docks, and Shift + Esc zooms the current pane.

Terminal, git and the agent

Ctrl + ` toggles the terminal panel on every platform. Ctrl + Shift + G opens the git panel, Ctrl + ' (Cmd + ') toggles inline diff hunks in the editor, and the sequence Alt + G, B (Cmd + Option + G, B) shows blame; inside the git panel, Ctrl + G, Up pushes and Ctrl + G, Down pulls. Cmd + ? opens the agent panel on a Mac (Ctrl + Shift + / elsewhere), Ctrl + Enter (Ctrl + Return) opens the inline assistant at the cursor, and Ctrl + . lists code actions.

Questions

Are Zed's default keys the same on Windows and Linux?

Mostly. The two keymap files agree on most actions listed here; where they differ, the action has two rows, and the brackets after its name, such as (Windows, Mac) or (Linux), say which systems each row covers. Formatting is Alt + Shift + F on Windows and Ctrl + Shift + I on Linux, and a cursor above is Ctrl + Alt + Up on Windows and Alt + Shift + Up on Linux.

How do I select the whole function I am in?

Cmd + Option + E on a Mac, Alt + Shift + E on Windows and Ctrl + Alt + E on Linux select the enclosing symbol. Ctrl + Shift + Right on a Mac, or Alt + Shift + Right elsewhere, expands the selection one syntax node at a time.

What does Ctrl + K (Cmd + K on a Mac) followed by another key mean?

It is a key sequence: press Ctrl + K, release, then press the second key. Zed uses the prefix for tab, pane, fold and file commands, for example Ctrl + K, Ctrl + S (Cmd + K, Cmd + S) for the keymap editor.

How do I open the keymap file?

Ctrl + K, Ctrl + S (Cmd + K, Cmd + S) opens the keymap editor, and from there Ctrl + E (Cmd + E) opens keymap.json. Ctrl + Alt + , (Cmd + Option + ,) opens settings.json.

Sources and checks

Every row on this page was matched to a line in the documentation above on . A binding that could not be found there is not listed.

1 row from the earlier version of this page was removed in that check: duplicates, and bindings the documentation does not list or lists differently.

Found a wrong or missing key? Tell us and it gets checked against the source. How we verify describes the process and its limits.