Skip to content

↑↓ moveEnter openEsc close

Zed keyboard shortcuts

Zed 0.210 · 40 shortcuts · checked Nov 2026 · Source: Zed Industries docs

Zed is a fast, collaborative code editor written in Rust, with an AI agent panel built in. Its default keys follow VS Code closely.

Most used Zed keyboard shortcuts

The Zed shortcuts worth learning first. The full list follows, grouped by task.

40 shortcuts

Small screen: your system's keys only. Pick another system in the tabs above.

General

11 shortcuts
ActionMacWindowsLinux
Open the command paletteShiftCmdPCtrlShiftPCtrlShiftP
Find a file in the projectCmdPCtrlPCtrlP
Open settingsCmd,Ctrl,Ctrl,
Open the keymap editorCmdK,CmdSCtrlK,CtrlSCtrlK,CtrlS
Focus the project panelShiftCmdECtrlShiftECtrlShiftE
Show or hide the left dockCmdBCtrlBCtrlB
Show or hide the bottom dockCmdJCtrlJCtrlJ
Show or hide the terminalCtrl`Ctrl`Ctrl`
Bigger textCmd=Ctrl=Ctrl=
Smaller textCmd-Ctrl-Ctrl-

AI

3 shortcuts
ActionMacWindowsLinux
Open or close the agent panelShiftCmd/CtrlShift/CtrlShift/
Inline assist (edit with AI)CtrlEnterCtrlEnterCtrlEnter
Accept the edit predictionTabTabTab

Editing

14 shortcuts
ActionMacWindowsLinux
UndoCmdZCtrlZCtrlZ
RedoShiftCmdZCtrlShiftZCtrlShiftZ
Comment or uncomment linesCmd/Ctrl/Ctrl/
Duplicate the lineShiftCmdDCtrlShiftDCtrlShiftD
Delete the lineShiftCmdKCtrlShiftKCtrlShiftK
Move the line upOption↑Alt↑Alt↑
Move the line downOption↓Alt↓Alt↓
Select the next occurrenceCmdDCtrlDCtrlD
Select every occurrenceShiftCmdLCtrlShiftLCtrlShiftL
Format the fileShiftCmdICtrlShiftICtrlShiftI
Show completionsCtrlSpaceCtrlSpaceCtrlSpace
Show code actionsCmd.Ctrl.Ctrl.
Find in the fileCmdFCtrlFCtrlF
Find and replaceOptionCmdFCtrlHCtrlH

Navigation

12 shortcuts
ActionMacWindowsLinux
Go to the definitionF12F12F12
Rename the symbolF2F2F2
Go to a lineCtrlGCtrlGCtrlG
Go to a symbol in the fileShiftCmdOCtrlShiftOCtrlShiftO
Go to a symbol in the projectCmdTCtrlTCtrlT
Next problemF8F8F8
Previous problemShiftF8ShiftF8ShiftF8
Open the diagnostics panelShiftCmdMCtrlShiftMCtrlShiftM
Close the tabCmdWCtrlWCtrlW
Reopen the closed tabShiftCmdTCtrlShiftTCtrlShiftT
Next tabShiftCmd]CtrlShift]CtrlShift]
Previous tabShiftCmd[CtrlShift[CtrlShift[
Show the key map: which keys Zed uses mostDarker orange = used by more shortcuts

Zed editing shortcuts: comment, duplicate and move lines

Terminal, docks and AI panels in Zed

Vim mode
Add "vim_mode": true to your settings (Cmd+Comma or Ctrl+Comma) to edit with Vim keys.

Zed keyboard shortcuts: questions

Can I use VS Code keys in Zed?
Zed's default keymap already follows VS Code for most commands. Other keymaps (JetBrains, Sublime Text, Atom, Emacs and Vim mode) are offered in the welcome screen and settings.

These are the default key bindings in Zed 0.210, as published by Zed Industries. Shortcuts that need an extension, an add-in or a changed keymap are left out. Where two combinations do the same thing, both are shown.

Single-system lists: Zed keyboard shortcuts for Mac, Zed keyboard shortcuts for Windows, Zed keyboard shortcuts for Linux.

Each shortcut has its own page with the keys for every system, related shortcuts and the same action in other apps. The printable cheat sheet fits the whole list on one or two pages.