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.
Action
Windows / Linux
Mac
Open command paletteLists every Zed action by name; type a few characters to filter, then confirm to run one.
Ctrl+Shift+PorF1
Cmd+Shift+P
Open file finderType part of a file name or path to narrow the project's files.
Ctrl+P
Cmd+P
Search project symbolsSearches symbols across every file of the project, not only the open one.
Ctrl+T
Cmd+T
Open file or folderA single chord on a Mac, a two-step sequence on Windows and Linux.
Ctrl+KthenCtrl+O
Cmd+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+R
Cmd+Option+OorCtrl+R
Open remote projectStarts a remote project; this default binding does not reuse an existing connection.
Ctrl+Alt+Shift+O
Ctrl+Cmd+O
New file
Ctrl+N
Cmd+N
New window
Ctrl+Shift+N
Cmd+Shift+N
Close window
Ctrl+Shift+W
Cmd+Shift+W
Save fileIn a multibuffer it saves every file that has edits.
Ctrl+S
Cmd+S
Save asWrites the active buffer under a new name.
Ctrl+Shift+S
Cmd+Shift+S
Save all files (Windows, Mac)
Ctrl+KthenS
Cmd+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+S
Cmd+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+S
Cmd+KthenCmd+S
Open theme selector
Ctrl+KthenCtrl+T
Cmd+KthenCmd+T
Toggle theme mode
Ctrl+KthenCtrl+Shift+T
Cmd+KthenCmd+Shift+T
Open extensionsOpens the page where extensions are installed and managed.
Ctrl+Shift+X
Cmd+Shift+X
Open language selector
Ctrl+KthenM
Cmd+KthenM
Open encoding selector
Ctrl+KthenN
Cmd+KthenN
Reopen last pickerBrings back the picker you dismissed most recently in this window.
Ctrl+KthenCtrl+P
Cmd+KthenCmd+P
Increase editor font sizeChanges the buffer font only; the default binding does not persist the new size.
Ctrl+=
Cmd+=
Decrease editor font size
Ctrl+-
Cmd+-
Reset editor font size
Ctrl+0
Cmd+0
Toggle full screen
F11
Ctrl+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+Space
Ctrl+Cmd+Space
Quit Zed
Ctrl+Q
Cmd+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.
Action
Windows / Linux
Mac
Close tabCloses the active item in the pane; pinned tabs are not closed by this binding.
Ctrl+WorCtrl+F4
Cmd+W
Close other tabs (Windows, Mac)Closes the inactive tabs of the pane and leaves pinned ones open.
Ctrl+Alt+Shift+T
Cmd+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 left
Ctrl+KthenE
Cmd+KthenE
Close tabs to the right
Ctrl+KthenT
Cmd+KthenT
Close saved tabsCloses every tab that has no unsaved changes.
Ctrl+KthenU
Cmd+KthenU
Close all tabsApplies to the active pane only.
Ctrl+KthenW
Cmd+KthenW
Close all tabs and panesClears every pane of the workspace, not just the active one.
Ctrl+KthenCtrl+W
Cmd+KthenCmd+W
Close inactive tabs and panesKeeps only the tab you are working in.
Ctrl+Alt+Shift+W
Ctrl+Cmd+Option+W
Reopen closed tabRestores the item that was closed most recently.
Ctrl+Shift+T
Cmd+Shift+T
Pin or unpin tab
Ctrl+KthenShift+Enter
Cmd+KthenShift+Return
Go to next tab
Ctrl+Page Down
Cmd+}orCmd+Option+Right
Go to previous tab
Ctrl+Page Up
Cmd+{orCmd+Option+Left
Go to tab 1The digits 2 to 9 select the matching tab in the same way.
Alt+1
Ctrl+1
Go to last tab
Alt+0
Ctrl+0
Move tab leftSwaps the active tab with its left neighbour.
Ctrl+Shift+Page Up
Ctrl+Shift+Page Up
Move tab rightSwaps the active tab with its right neighbour.
Ctrl+Shift+Page Down
Ctrl+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+Tab
Ctrl+Tab
Open tab switcher backwardsOpens the switcher with the last entry selected.
Ctrl+Shift+Tab
Ctrl+Shift+Tab
Next tab in tab switcher
Ctrl+Down
Ctrl+Down
Previous tab in tab switcher
Ctrl+Up
Ctrl+Up
Close tab from tab switcherCloses the highlighted tab without leaving the switcher.
Ctrl+Backspace
Ctrl+Backspace
Split editor rightOpens a second pane beside the current one.
Ctrl+\
Cmd+\
Split pane right
Ctrl+KthenRight
Cmd+KthenRight
Split pane left
Ctrl+KthenLeft
Cmd+KthenLeft
Split pane up
Ctrl+KthenUp
Cmd+KthenUp
Split pane down
Ctrl+KthenDown
Cmd+KthenDown
Focus pane to the left
Ctrl+KthenCtrl+Left
Cmd+KthenCmd+Left
Focus pane to the right
Ctrl+KthenCtrl+Right
Cmd+KthenCmd+Right
Focus pane above
Ctrl+KthenCtrl+Up
Cmd+KthenCmd+Up
Focus pane below
Ctrl+KthenCtrl+Down
Cmd+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+1
Cmd+1
Swap with pane on the left
Ctrl+KthenShift+Left
Cmd+KthenShift+Left
Swap with pane on the right
Ctrl+KthenShift+Right
Cmd+KthenShift+Right
Swap with pane above
Ctrl+KthenShift+Up
Cmd+KthenShift+Up
Swap with pane below
Ctrl+KthenShift+Down
Cmd+KthenShift+Down
Zoom active paneEnlarges the focused pane; press it again to restore the layout.
Shift+Esc
Shift+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+F6
F6orCmd+F6
Focus previous window region
Shift+F6
Shift+F6
Copy file pathCopies the path of the file in the active editor.
Ctrl+KthenP
Cmd+KthenP
Reveal in file managerShows the current file in Finder or the system file manager.
Ctrl+KthenR
Cmd+KthenR
Cursor movement 18
Action
Windows / Linux
Mac
Move to previous word start
Ctrl+Left
Option+Left
Move to next word end
Ctrl+Right
Option+Right
Move to previous subword startSubword motions also stop inside identifiers such as camelCase or snake_case names.
Ctrl+Alt+Left
Ctrl+Option+Left
Move to next subword end
Ctrl+Alt+Right
Ctrl+Option+Right
Move to line startStops at the indentation first and treats a soft-wrapped row as a line.
Home
Cmd+LeftorHome
Move to line endStops at the end of the soft-wrapped row.
End
Cmd+RightorEnd
Move to start of file
Ctrl+Home
Cmd+UporCmd+Home
Move to end of file
Ctrl+End
Cmd+DownorCmd+End
Move cursor up one page
Page Up
Page Up
Move cursor down one page
Page Down
Page Down
Scroll up one pageScrolls the view, unlike plain Page Up, which moves the cursor.
Alt+Page Up
Cmd+Page Up
Scroll down one page
Alt+Page Down
Cmd+Page Down
Go to enclosing bracket
Ctrl+Shift+\
Ctrl+MorCmd+|
Go to lineOpens a prompt for a line number in the active buffer.
Ctrl+G
Ctrl+G
Go back (Windows, Mac)Returns to the previous cursor location in the navigation history.
Alt+-orAlt+Left
Ctrl+-
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+Right
Ctrl+_
Go forward (Linux)Moves forward again after going back.
Ctrl+Alt+_
—
Code navigation 19
Action
Windows / Linux
Mac
Open file outlineLists the symbols of the active file in a picker.
Ctrl+Shift+O
Cmd+Shift+O
Go to definitionIf the symbol has several definitions, they open together in a multibuffer.
F12
F12
Go to definition in split
Alt+F12
Option+F12
Go to type definition (Linux, Mac)
Ctrl+F12
Cmd+F12
Type definition in split (Linux, Mac)
Ctrl+Alt+F12
Cmd+Option+F12
Go to implementation (Windows, Mac)
Ctrl+F12
Shift+F12
Go to implementation (Linux)
Shift+F12
—
Find all referencesLists every reference to the symbol under the cursor in a multibuffer.
Alt+Shift+F12
Option+Shift+F12
Show incoming callsLists the functions that call the one under the cursor; needs a language server with call hierarchy.
Ctrl+KthenCtrl+H
Cmd+KthenCmd+H
Switch callers and calleesWorks while the call hierarchy picker is open.
Ctrl+KthenCtrl+H
Cmd+KthenCmd+H
Go to next diagnosticCovers every severity from hint to error in the current file.
F8
F8
Go to previous diagnostic
Shift+F8
Shift+F8
Open project diagnosticsShows errors and warnings from the whole project in one multibuffer.
Ctrl+Shift+M
Cmd+Shift+M
Go to previous changeJumps back to the place of an earlier edit in this file.
Ctrl+Shift+Backspace
Cmd+Shift+Backspace
Go to next change
Ctrl+Alt+Shift+Backspace
Cmd+Option+Shift+Backspace
Open excerpt source fileIn a multibuffer, jumps to the file behind the excerpt under the cursor.
Alt+Enter
Option+Return
Open excerpt in splitOpens the excerpt's file in a neighbouring pane.
Ctrl+Alt+Enter
Cmd+Option+Return
Expand excerptsShows more surrounding lines for every excerpt that holds a selection.
Shift+Enter
Shift+Return
Open selections in multibufferCollects all current selections into one multibuffer tab.
Alt+Enter
Option+Return
Editing text 30
Action
Windows / Linux
Mac
Undo
Ctrl+Z
Cmd+Z
Redo
Ctrl+Shift+ZorCtrl+Y
Cmd+Shift+Z
Cut
Ctrl+XorShift+Delete
Cmd+X
Copy
Ctrl+CorCtrl+Insert
Cmd+C
Paste
Ctrl+VorShift+Insert
Cmd+V
Delete line
Ctrl+Shift+K
Cmd+Shift+K
Move line up
Alt+Up
Option+Up
Move line down
Alt+Down
Option+Down
Duplicate line up (Windows, Mac)Inserts a copy of the current line above it.
Alt+Shift+Up
Option+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+Down
Option+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+J
Ctrl+J
Indent lines
Ctrl+]
Cmd+]
Outdent lines
Ctrl+[
Cmd+[
Insert tab or indent
Tab
Tab
Outdent or remove tab
Shift+Tab
Shift+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+Enter
Cmd+Return
Insert line above
Ctrl+Shift+Enter
Cmd+Shift+Return
Rewrap textReflows the text to the preferred line length.
Ctrl+KthenQ
Cmd+KthenQ
Toggle soft wrap
Ctrl+KthenZ
Cmd+KthenZ
Delete previous word
Ctrl+Backspace
Option+Backspace
Delete next word
Ctrl+Delete
Option+Delete
Delete previous subwordStops at the capital letters and underscores inside an identifier.
Ctrl+Alt+Backspace
Ctrl+Option+Backspace
Delete next subword
Ctrl+Alt+Delete
Ctrl+Option+Delete
Open editor context menuKeyboard equivalent of a right-click, on Windows and Linux.
Shift+F10orMenu
—
Toggle line numbers
Ctrl+;
Cmd+;
Cancel editor operationDismisses the current popup or a pending edit prediction.
Esc
Esc
Code intelligence 34
Action
Windows / Linux
Mac
Show completionsRequests the completion menu at the cursor.
Ctrl+Space
Ctrl+Space
Show word completionsSuggests completions from words already present in the buffer.
Ctrl+Shift+Space
Ctrl+Shift+Space
Accept completionInserts the highlighted suggestion from the completion menu.
Enter
Return
Accept completion and replaceOverwrites the existing text instead of inserting next to it.
Shift+Enter
Shift+Return
Compose completionStays available for language-server completions when Tab is taken by edit predictions.
Tab
Tab
Next item in completion menuAlso moves through the code actions menu.
Down
DownorCtrl+N
Previous item in completion menu
Up
UporCtrl+P
First item in completion menu
Page Up
Page Up
Last item in completion menu
Page Down
Page Down
Next snippet tabstopApplies while a snippet is being filled in and the completion menu is closed.
Tab
Tab
Previous snippet tabstop
Shift+Tab
Shift+Tab
Show code actionsLists the code actions available at the cursor; a task bound to the line appears first.
Ctrl+.
Cmd+.
Apply code action
Enter
Return
Rename symbolStarts a rename of the symbol at the cursor; Enter confirms it.
F2
F2
Show hover informationOpens the hover popover for the symbol at the cursor from the keyboard.
Ctrl+KthenCtrl+I
Cmd+KthenCmd+I
Show signature helpDisplays the parameters of the function call being typed.
Ctrl+I
Cmd+I
Next signature overload
Down
Down
Previous signature overload
Up
Up
Format document (Windows, Mac)Formats the whole buffer rather than a selection.
Alt+Shift+F
Cmd+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 imports
Alt+Shift+O
Option+Shift+O
Toggle inlay hints
Ctrl+Shift+;
Ctrl+:
Show blame for current lineShows who last changed the line under the cursor.
Ctrl+KthenCtrl+B
Cmd+KthenCmd+B
Accept edit predictionAccepts the whole prediction; Alt + L exists because the system often takes Alt + Tab for window switching.
Alt+LorAlt+Tab
Option+Tab
Accept next word of predictionTakes the prediction only up to the next word boundary.
Alt+K
Ctrl+Cmd+Right
Accept next line of predictionTakes the prediction up to the next line break.
Alt+J
Ctrl+Cmd+Down
Next edit prediction
Alt+]
Option+Tab
Previous edit prediction
Alt+[
Option+Shift+Tab
Request edit predictionAsks for a prediction manually when none is showing.
Alt+\
Option+Tab
Toggle edit predictions (Windows, Mac)
Ctrl+Alt+E
Ctrl+Cmd+E
Toggle edit predictions (Linux)
Ctrl+Alt+Shift+E
—
Open edit prediction menu (Windows, Mac)
Ctrl+Shift+I
Ctrl+Cmd+I
Open edit prediction menu (Linux)
Ctrl+Alt+Shift+I
—
Selection and multiple cursors 28
Action
Windows / Linux
Mac
Select all
Ctrl+A
Cmd+A
Select line
Ctrl+L
Cmd+L
Add next occurrenceAdds a cursor at the next match of the current selection.
Ctrl+D
Cmd+D
Add previous occurrence (Windows, Mac)
Ctrl+Shift+F3
Ctrl+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+D
Cmd+KthenCmd+D
Skip to previous occurrence (Linux, Mac)
Ctrl+KthenCtrl+Shift+D
Cmd+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+F2
Cmd+Shift+LorCmd+F2
Add cursor above (Windows, Mac)Skips soft-wrapped rows, so the new cursor lands on the previous real line.
Ctrl+Alt+Up
Cmd+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+Down
Cmd+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+Right
Ctrl+Shift+RightorCtrl+Cmd+Right
Shrink selection to syntax node
Alt+Shift+Left
Ctrl+Shift+Left
Select enclosing symbol (Windows, Mac)Selects the whole function or other symbol that contains the cursor.
Alt+Shift+E
Cmd+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+U
Cmd+U
Redo last selection change
Ctrl+Shift+U
Cmd+Shift+U
Select to previous word start
Ctrl+Shift+Left
Option+Shift+Left
Select to next word end
Ctrl+Shift+Right
Option+Shift+Right
Select to previous subword start
Ctrl+Alt+Shift+Left
Ctrl+Option+Shift+Left
Select to next subword end
Ctrl+Alt+Shift+Right
Ctrl+Option+Shift+Right
Select to line start
Shift+Home
Cmd+Shift+LeftorShift+Home
Select to line end
Shift+End
Cmd+Shift+RightorShift+End
Select to start of file
Ctrl+Shift+Home
Cmd+Shift+Up
Select to end of file
Ctrl+Shift+End
Cmd+Shift+Down
Extend selection up one page
Shift+Page Up
Shift+Page Up
Extend selection down one page
Shift+Page Down
Shift+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.
Action
Windows / Linux
Mac
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+L
Cmd+KthenCmd+L
Fold recursivelyCollapses the current block together with all the blocks nested in it.
Ctrl+KthenCtrl+[
Cmd+KthenCmd+[
Unfold recursively
Ctrl+KthenCtrl+]
Cmd+KthenCmd+]
Fold allCollapses every foldable region of the buffer.
Ctrl+KthenCtrl+0
Cmd+KthenCmd+0
Unfold all
Ctrl+KthenCtrl+J
Cmd+KthenCmd+J
Fold at level 1The digits 2 to 9 fold at the deeper nesting levels in the same way.
Ctrl+KthenCtrl+1
Cmd+KthenCmd+1
Search and replace 31
Action
Windows / Linux
Mac
Find in fileOpens the search bar for the active buffer.
Ctrl+F
Cmd+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+F
Cmd+Shift+F
Replace in projectOpens project search with the replace field enabled.
Ctrl+Shift+H
Cmd+Shift+H
Open text finderA quick picker that finds a string anywhere in the project and opens the file.
Ctrl+Alt+F
Cmd+Option+F
Find next
F3
Cmd+G
Find previous
Shift+F3
Cmd+Shift+G
Next match from search bar
Enter
Return
Previous match from search bar
Shift+Enter
Shift+Return
Select all search matchesTurns every match into a selection so they can be edited together.
Alt+Enter
Option+Return
Toggle case-sensitive search
Alt+C
Cmd+Option+C
Toggle whole-word search
Alt+W
Cmd+Option+W
Toggle regex search
Alt+R
Cmd+Option+X
Toggle replace field (Windows, Mac)Shows or hides the replace field of the search in the active pane.
Alt+Shift+H
Cmd+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+L
Cmd+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.
Enter
Return
Replace all matches
Ctrl+Enter
Cmd+Return
Replace all in projectApplies the replacement to every match of the project search.
Ctrl+Alt+Enter
Cmd+Return
Previous search queryRecalls earlier queries from the search history.
Up
Up
Next search query
Down
Down
Return focus to editorMoves the cursor from the search bar back into the buffer.
Tab
Tab
Close search bar
Esc
Esc
Search in new tabRuns the query in a new project search tab.
Ctrl+Enter
Cmd+Return
Switch between query and resultsMoves focus from the project search bar to the result list and back.
Esc
Esc
Toggle search filters (Windows, Mac)Shows or hides the filter fields of project search.
Alt+F
Cmd+Shift+J
Toggle search filters (Linux)Shows or hides the filter fields of project search.
Ctrl+Alt+F
—
Collapse or expand all results
Ctrl+Shift+Enter
Cmd+Shift+Return
Include ignored files in finderWorks in the file finder and adds ignored files to the list.
Ctrl+Shift+I
Cmd+Shift+I
Panels and docks 26
Action
Windows / Linux
Mac
Toggle left dock
Ctrl+B
Cmd+B
Toggle right dock
Ctrl+Alt+B
Cmd+RorCmd+Option+B
Toggle bottom dock
Ctrl+J
Cmd+J
Toggle all docks (Windows, Mac)Hides every open dock at once, or brings them back.
Ctrl+Shift+Y
Cmd+Option+Y
Toggle all docks (Linux)Hides every open dock at once, or brings them back.
Ctrl+Alt+Y
—
Close active dock
Ctrl+Alt+W
Ctrl+Option+W
Focus project panelMoves focus into the file tree, or back out when the panel already has it.
Ctrl+Shift+E
Cmd+Shift+E
Reveal file in project panelFrom an editor, selects the current file in the project panel.
Ctrl+Shift+E
Cmd+Shift+E
Focus outline panelThe panel keeps a tree of the current file's symbols in view.
Ctrl+Shift+B
Cmd+Shift+B
Focus git panel
Ctrl+Shift+G
Ctrl+Shift+G
Focus debug panel
Ctrl+Shift+D
Cmd+Shift+D
Focus agent panel
Ctrl+Shift+/
Cmd+?
Toggle terminal panel
Ctrl+`
Ctrl+`
Focus collaboration panelOn Windows and Linux the binding is inactive while a terminal has focus.
Ctrl+Shift+C
Cmd+Shift+C
Toggle threads sidebarThe sidebar lists agent threads grouped by project.
Ctrl+Alt+J
Cmd+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+R
Ctrl+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+0
Ctrl+Option+)
Reset size of all docks (Linux)
Ctrl+Alt+)
—
Project panel 29
Action
Windows / Linux
Mac
Expand selected folder
Right
Right
Collapse selected folder
Left
Left
Expand all folders
Ctrl+Right
Cmd+Right
Collapse all folders
Ctrl+Left
Cmd+Left
Open selected fileApplies when no file name is being edited in the panel.
Space
Space
New file in project panel
Ctrl+N
Cmd+N
New folder (Windows, Mac)
Alt+N
Cmd+Option+N
New folder (Linux)
Ctrl+Alt+N
—
Rename file or folder
F2orEnter
F2orReturn
Cut file or folder
Ctrl+X
Cmd+X
Copy file or folder
Ctrl+CorCtrl+Insert
Cmd+C
Paste file or folder
Ctrl+VorShift+Insert
Cmd+V
Undo file operationReverts the last change made to files from the project panel.
Ctrl+Z
Cmd+Z
Redo file operation
Ctrl+Shift+Z
Cmd+Shift+Z
Move to trashAsks for confirmation before the entry goes to the trash.
DeleteorBackspace
DeleteorBackspace
Delete permanentlyRemoves the entry after a confirmation prompt instead of using the trash.
Shift+Delete
Cmd+Delete
Copy path of selected entry (Windows, Mac)
Alt+Shift+C
Cmd+Option+C
Copy path of selected entry (Linux)
Ctrl+Alt+C
—
Copy relative path of entry (Windows, Mac)
Ctrl+KthenCtrl+Shift+C
Cmd+Option+Shift+C
Copy relative path of entry (Linux)
Ctrl+Alt+Shift+C
—
Reveal entry in file manager
Ctrl+Alt+R
Cmd+Option+R
Open with default appHands the selected file to the application the system associates with it.
Ctrl+Shift+Enter
Ctrl+Shift+Return
Compare marked filesOpens a diff view when exactly two files are marked.
Alt+D
Option+D
Search in selected folder (Windows, Mac)Starts a project search limited to the selected directory.
Ctrl+KthenCtrl+Shift+F
Cmd+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 menu
Shift+F10orMenu
Shift+F10
Open outline entryIn the outline panel, jumps to the selected symbol in the editor.
Space
Space
Expand outline entry
Right
Right
Collapse outline entry
Left
Left
Git 42
Action
Windows / Linux
Mac
Show git blameA two-step sequence that shows blame information for the whole file.
Alt+GthenB
Cmd+Option+GthenB
Open modified filesOpens all files that git reports as modified.
Alt+GthenM
Cmd+Option+GthenM
Review diff
Alt+GthenR
Cmd+Option+GthenR
Toggle selected diff hunksExpands or collapses the inline diff for the hunks under the selection.
Ctrl+'
Cmd+'
Expand all diff hunks
Ctrl+"
Cmd+"
Go to next hunk
Ctrl+F8
Cmd+F8
Go to previous hunk
Ctrl+Shift+F8
Cmd+Shift+F8
Stage hunk and go to next
Alt+Y
Cmd+Y
Unstage hunk and go to next
Alt+Shift+Y
Cmd+Shift+Y
Toggle staged state of hunk (Linux, Mac)
Ctrl+Alt+Y
Cmd+Option+Y
Restore hunkDiscards the selected hunks and returns them to their original state.
Ctrl+KthenCtrl+R
Cmd+Option+Z
Open recent branches (Windows, Mac)
Alt+Shift+B
Ctrl+Cmd+B
Open recent branches (Linux)
Ctrl+Alt+Shift+B
—
Open worktree picker (Windows, Mac)
Alt+Shift+W
Ctrl+Cmd+W
Open worktree picker (Linux)
Ctrl+Alt+Shift+W
—
Show Changes tab
Ctrl+1
Cmd+1
Show History tab
Ctrl+2
Cmd+2
Stage file
Alt+Y
Cmd+Y
Unstage file
Alt+Shift+Y
Cmd+Shift+Y
Toggle staged state of entryStages or unstages the entry selected in the changes list.
Space
Space
Stage range of entriesStages everything between the anchor entry and the cursor.
Shift+Space
Shift+Space
Stage all changes
Ctrl+Space
Ctrl+Cmd+Y
Unstage all changes
Ctrl+Shift+Space
Ctrl+Cmd+Shift+Y
Discard changes in fileReturns the file to its last committed state after a confirmation prompt.
DeleteorBackspace
DeleteorBackspace
Focus commit messageMoves from the changes list to the commit message editor.
Tab
Tab
Focus changes listMoves from the commit message editor back to the list of changes.
Tab
Tab
CommitCreates a commit from the staged changes with the message in the commit editor.
Ctrl+Enter
Cmd+Return
Amend last commit
Ctrl+Shift+Enter
Cmd+Shift+Return
Generate commit messageAsks the configured AI model to draft the message.
Alt+L
Option+Tab
Expand commit editor
Shift+Esc
Shift+Esc
FetchLike the other remote commands it is a sequence that works while the git panel has focus.
Ctrl+GthenCtrl+G
Ctrl+GthenCtrl+G
Pull
Ctrl+GthenDown
Ctrl+GthenDown
Pull with rebase
Ctrl+GthenShift+Down
Ctrl+GthenShift+Down
Push
Ctrl+GthenUp
Ctrl+GthenUp
Force push
Ctrl+GthenShift+Up
Ctrl+GthenShift+Up
Open project diffOpens the Project Diff, which shows all changes git has captured.
Ctrl+GthenD
Ctrl+GthenD
Discard all tracked changesReturns every tracked file to its last committed state.
Ctrl+GthenBackspace
Ctrl+GthenBackspace
Trash untracked files
Ctrl+GthenShift+Backspace
Ctrl+GthenShift+Backspace
Delete branch in picker
Ctrl+Shift+Backspace
Cmd+Shift+Backspace
Apply stash
Ctrl+Space
Ctrl+Space
Pop stash
Ctrl+Shift+Space
Ctrl+Shift+Space
Drop stash
Ctrl+Shift+Backspace
Ctrl+Shift+Backspace
Terminal 22
Action
Windows / Linux
Mac
New terminal
Ctrl+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+Insert
Cmd+C
Paste in terminal
Ctrl+Shift+VorShift+Insert
Cmd+V
Clear terminal
Ctrl+Shift+L
Cmd+K
Find in terminal
Ctrl+Shift+F
Cmd+F
Select all terminal text
Ctrl+Shift+A
Cmd+A
Scroll terminal up one page
Shift+Page Up
Shift+Page UporCmd+Up
Scroll terminal down one page
Shift+Page Down
Shift+Page DownorCmd+Down
Scroll terminal up one line
Shift+Up
Shift+Up
Scroll terminal down one line
Shift+Down
Shift+Down
Scroll to top of terminal
Shift+Home
Shift+HomeorCmd+Home
Scroll to bottom of terminal
Shift+End
Shift+EndorCmd+End
Toggle terminal vi mode
Ctrl+Shift+Space
Ctrl+Shift+Space
Split terminal right
Ctrl+Shift+5
Cmd+DorCtrl+Option+Right
Rerun task in terminalRuns again the task that this terminal executed last.
Ctrl+Shift+RorCtrl+Alt+R
Cmd+Option+R
Inline assist in terminal (Windows, Mac)Opens the inline assistant prompt for the terminal.
Ctrl+I
Ctrl+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+C
Ctrl+C
Move back one word in shellSends the escape sequence Esc b to the terminal program.
Alt+B
Option+LeftorOption+B
Move forward one word in shell
Alt+F
Option+RightorOption+F
Delete previous word in shell
Ctrl+BackspaceorCtrl+W
Ctrl+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
Action
Windows / Linux
Mac
Run a taskOpens the task picker with the tasks available for the current file.
Alt+Shift+T
Cmd+Shift+R
Rerun last taskRepeats the most recent task with the context it captured the first time.
Ctrl+Shift+R
Cmd+Option+R
Start debuggingOpens the new process modal with the debug tasks found for the project.
F4
F4
Rerun last debug session
F5
F5
ContinueResumes all threads until the next breakpoint; active only while execution is paused.
F5
F5
Step over
F10
F10orF7
Step into
F11
F11
Step out
Shift+F11
Shift+F11
Pause programTakes over F6 only while a debug session is live.
F6
F6
Stop debugging
Shift+F5
Shift+F5
Restart debug sessionStarts the current session again with the same configuration.
Ctrl+Shift+F5
Cmd+Shift+F5
Toggle breakpointAdds or removes a breakpoint on the line of the cursor.
F9
F9
Edit log breakpointEdits the message that a log breakpoint writes when it is hit.
Shift+F9
Shift+F9
Enable or disable breakpointApplies to the entry selected in the breakpoint list.
Space
Space
Remove breakpoint from list
Backspace
Backspace
Open thread picker
Ctrl+T
Cmd+T
Open session picker
Ctrl+I
Cmd+I
Edit variable value
Enter
Return
Copy variable value
Ctrl+C
Cmd+C
Add variable to watch
Alt+Enter
Option+Return
Watch console expression
Alt+Enter
Option+Return
Agent panel 35
Action
Windows / Linux
Mac
New agent threadWorks while the agent panel has focus.
Ctrl+N
Cmd+N
Open new thread menuOpens the menu for choosing which agent the new thread uses.
Ctrl+Alt+Shift+N
Cmd+Option+Shift+N
Open agent options menu
Alt+Shift+I
Cmd+Option+M
Open agent settings (Windows, Mac)
Alt+Shift+C
Cmd+Option+C
Open agent settings (Linux)
Ctrl+Alt+C
—
Switch to recent threadCycles forward through recent threads without opening the sidebar.
Ctrl+Tab
Ctrl+Tab
Switch to recent thread backwards
Ctrl+Shift+Tab
Ctrl+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+Enter
Ctrl+Return
Expand message editorEnlarges the prompt editor when a message needs more room.
Alt+Shift+Esc
Option+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+Tab
Option+Tab
Open profile selector
Ctrl+I
Cmd+I
Cycle agent mode
Shift+Tab
Shift+Tab
Manage agent profiles (Windows, Mac)
Alt+Shift+P
Cmd+Option+P
Manage agent profiles (Linux)
Ctrl+Alt+P
—
Manage agent skills (Windows, Mac)
Alt+Shift+L
Cmd+Option+L
Manage agent skills (Linux)
Ctrl+Alt+L
—
Toggle thinking modeApplies to models that support extended thinking.
Ctrl+Alt+K
Cmd+Option+K
Cycle thinking effort
Ctrl+'
Ctrl+'
Open thinking effort menu
Ctrl+Alt+'
Cmd+Option+'
Toggle fast mode
Ctrl+Alt+.
Cmd+Option+.
Allow tool call onceApproves the pending operation for this time only.
Alt+Shift+A
Cmd+Y
Always allow tool callApproves the operation and remembers the choice.
Alt+Shift+Q
Cmd+Option+Y
Reject tool call
Alt+Shift+X
Cmd+Option+Z
Open permission options
Ctrl+Alt+A
Cmd+Option+A
Next inline assist suggestionCycles through the alternative results the inline assistant produced.
Ctrl+]
Ctrl+]
Previous inline assist suggestion
Ctrl+[
Ctrl+[
Review agent changesOpens a multibuffer tab with every edit the agent made.
Ctrl+Shift+R
Ctrl+Shift+R
Keep agent changeAccepts the agent edit under the cursor.
Alt+Y
Cmd+Y
Reject agent change
Ctrl+Alt+Z
Cmd+Option+Z
Keep all agent changes
Alt+Shift+Y
Option+Shift+Y
Reject all agent changes
Alt+Shift+Z
Option+Shift+Z
Undo last rejectRestores the changes that the most recent reject removed.
Alt+Shift+U
Option+Shift+U
Agent messages and threads 25
Action
Windows / Linux
Mac
Send message to agentDefault send key; with the use_modifier_to_send setting it inserts a newline instead.
Enter
Return
Send message and follow agentSubmits the prompt and follows the agent as it reads and edits files.
Ctrl+Enter
Cmd+Return
Send message immediatelyInterrupts the current generation instead of queueing the message.
Ctrl+Shift+Enter
Cmd+Shift+Return
Send next queued message
Ctrl+Alt+Shift+Enter
Cmd+Option+Shift+Return
Edit first queued message
Ctrl+Alt+E
Ctrl+Cmd+E
Remove first queued message
Ctrl+Shift+Backspace
Cmd+Shift+Backspace
Toggle steering for queued messageWhen on, the first queued message interrupts the agent at its next step.
Ctrl+Alt+S
Ctrl+Cmd+S
Clear message queue
Ctrl+Alt+Backspace
Cmd+Option+Backspace
Paste as raw textPastes into the message editor without the automatic formatting of pasted content.
Ctrl+Shift+V
Cmd+Shift+V
Open add context menu
Ctrl+;
Ctrl+;
Search in thread
Ctrl+F
Cmd+F
Next match in thread
F3
Cmd+G
Previous match in thread
Shift+F3
Cmd+Shift+G
Scroll thread up one pageScrolls the conversation while focus stays in the message editor.
Ctrl+Alt+Page Up
Ctrl+Page Up
Scroll thread down one page
Ctrl+Alt+Page Down
Ctrl+Page Down
Scroll to top of thread
Ctrl+Alt+Home
Ctrl+Home
Scroll to bottom of thread
Ctrl+Alt+End
Ctrl+End
Scroll to previous user message
Ctrl+Alt+Shift+Page Up
Ctrl+Option+Page Up
Scroll to next user message
Ctrl+Alt+Shift+Page Down
Ctrl+Option+Page Down
New thread in project groupIn the threads sidebar, starts a thread scoped to the selected project.
Ctrl+N
Cmd+N
Search threadsMoves focus to the filter field of the threads sidebar.
Ctrl+F
Cmd+F
Toggle thread historyThe history view holds all threads, archived ones included.
Ctrl+G
Cmd+G
Archive selected thread
Shift+Backspace
Shift+Backspace
Remove selected thread
Ctrl+Backspace
Cmd+Shift+Backspace
Rename selected thread
Shift+R
Shift+R
Menus and pickers 14
Action
Windows / Linux
Mac
Select next itemWorks in menus, pickers and lists throughout the app.
DownorTab
DownorCtrl+N
Select previous item
UporShift+Tab
UporCtrl+P
Select first item
HomeorPage Up
HomeorPage Up
Select last item
EndorPage Down
EndorPage Down
Confirm selection
Enter
Return
Confirm with secondary actionRuns the alternative action of the entry, for example opening it in an adjacent pane.
Ctrl+Enter
Cmd+ReturnorCtrl+Return
Cancel or close menu
Esc
Esc
Open submenu
Right
Right
Go back to parent menu
Left
Left
Confirm typed input in pickerUses the text you typed literally instead of the highlighted entry.
Alt+Enter
Option+Return
Remove command palette entry
Shift+Backspace
Shift+Backspace
Remove recent project entry
Shift+Backspace
Shift+Backspace
Add folder to projectBound inside the recent projects picker.
Ctrl+Shift+A
Cmd+Shift+A
Run notification actionTriggers the action offered by the toast notification on screen.
Alt+Shift+Enter
Option+Shift+Return
Keymap editor and settings window 17
Action
Windows / Linux
Mac
Search keymapPuts the cursor in the search field of the keymap editor.
Ctrl+F
Cmd+F
Search by keystroke (Windows, Mac)Lets you press a key combination to find the actions bound to it.
Alt+F
Cmd+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 bindings
Alt+C
Cmd+Option+C
Edit selected binding
Enter
Return
Add binding for actionCreates another key binding for the action in the selected row.
Alt+Enter
Option+Return
Create binding from scratchOpens a dialog that also asks which action to bind.
Ctrl+K
Cmd+K
Copy action name
Ctrl+C
Cmd+C
Copy binding context
Ctrl+Shift+C
Cmd+Shift+C
Show bindings with same keys
Ctrl+T
Cmd+T
Open keymap fileFrom the keymap editor, opens keymap.json, where your custom bindings are stored.
Ctrl+E
Cmd+E
Search settings
Ctrl+F
Cmd+F
Open settings as JSONIn the settings window, opens the file behind the page you are viewing.
Ctrl+,
Cmd+,
Switch between sidebar and content
Ctrl+Shift+E
Cmd+Shift+E
Next settings file
Ctrl+Page Down
Cmd+}
Previous settings file
Ctrl+Page Up
Cmd+{
Close settings window
Ctrl+WorEsc
Cmd+WorEsc
Previews and notebooks 25
Action
Windows / Linux
Mac
Open Markdown previewAvailable in Markdown files; shows the rendered document.
Ctrl+Shift+V
Cmd+Shift+V
Open Markdown preview to the sideShows the rendered view in a split next to the source.
Ctrl+KthenV
Cmd+KthenV
Close preview and return to editor
Ctrl+Shift+V
Cmd+Shift+V
Scroll preview up one element
Alt+Up
Option+Up
Scroll preview down one element
Alt+Down
Option+Down
Open SVG preview
Ctrl+Shift+V
Cmd+Shift+V
Open table previewOffered for CSV, TSV and other delimiter-separated files.
Ctrl+Shift+V
Cmd+Shift+V
Zoom in on image
Ctrl+=
Cmd+=
Zoom out of image
Ctrl+-
Cmd+-
Reset image zoom
Ctrl+0
Cmd+0
Show image at actual size
Ctrl+1
Cmd+1
Fit image to view
Ctrl+Shift+0
Cmd+Shift+0
Run code in REPLExecutes the selection, line or code block and shows the result below it.
Ctrl+Shift+Enter
Ctrl+Shift+Return
Run in REPL in place
Ctrl+Alt+Enter
Ctrl+Option+Return
Run cell and advance
Shift+Enter
Shift+Return
Run cellExecutes the current notebook cell and keeps it selected.
Ctrl+Enter
Cmd+Return
Run all cells
Ctrl+Shift+Enter
Cmd+Shift+Return
Move cell up
Alt+Up
Option+Up
Move cell down
Alt+Down
Option+Down
Add code cell
Ctrl+M
Cmd+M
Add Markdown cell
Ctrl+Shift+M
Cmd+Shift+M
Restart kernel
Ctrl+Shift+R
Cmd+Shift+R
Interrupt kernelStops the execution that is currently running.
Ctrl+C
Cmd+C
Edit selected cellMoves from command mode into the editor of the current cell.
Enter
Return
Leave cell editorReturns from the cell's editor to command mode.
Esc
Esc
Mac only 32
Action
Windows / Linux
Mac
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
No row on this page matches that filter.
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.