Zed Editor Keyboard Shortcuts

Complete Zed Editor keyboard shortcuts reference — 142 shortcuts across 9 categories. Quick reference cheat sheet for Mac.

General (16)

ShortcutAction
Cmd + Shift + PCommand Palette
Cmd + PFile Finder
Cmd + TProject Symbol Search
Cmd + OOpen
Cmd + Option + OOpen Recent Project
Cmd + SSave
Cmd + Shift + SSave As
Cmd + Option + SSave All
Cmd + K, SSave Without Formatting
Cmd + Shift + NNew Window
Cmd + Shift + WClose Window
Cmd + Option + ,Open Settings File
Cmd + K, Cmd + SOpen Keymap
Cmd + K, Cmd + TTheme Selector
Cmd + Shift + XExtensions
Cmd + QQuit

Files, Tabs & Panes (14)

ShortcutAction
Cmd + WClose Tab
Cmd + Option + TClose Other Tabs
Cmd + K, WClose All Tabs
Cmd + K, EClose Tabs to the Left
Cmd + K, TClose Tabs to the Right
Cmd + K, UClose Clean Tabs
Cmd + Shift + TReopen Closed Tab
Cmd + K, Shift + EnterPin Tab
Ctrl + TabTab Switcher
Ctrl + Shift + TabTab Switcher (Reverse)
Cmd + }Next Tab
Cmd + {Previous Tab
Cmd + K, PCopy Path
Cmd + K, RReveal in Finder

Navigation (15)

ShortcutAction
Ctrl + -Go Back
Ctrl + _Go Forward
Ctrl + GGo to Line
Cmd + Shift + OOutline
F12Go to Definition
Option + F12Go to Definition in Split
Cmd + F12Go to Type Definition
Shift + F12Go to Implementation
Option + Shift + F12Find All References
Cmd + Shift + BackspacePrevious Change
Ctrl + MMatching Bracket
Cmd + UpGo to Start of File
Cmd + DownGo to End of File
Option + LeftPrevious Word
Option + RightNext Word

Editing (25)

ShortcutAction
Cmd + ZUndo
Cmd + Shift + ZRedo
Cmd + Shift + KDelete Line
Option + UpMove Line Up
Option + DownMove Line Down
Option + Shift + UpDuplicate Line Up
Option + Shift + DownDuplicate Line Down
Ctrl + JJoin Lines
Cmd + [Outdent
Cmd + ]Indent
Cmd + /Toggle Comment
Cmd + K, Cmd + /Toggle Block Comment
Cmd + EnterNew Line Below
Cmd + Shift + EnterNew Line Above
Cmd + K, QRewrap
Cmd + K, ZToggle Soft Wrap
Cmd + BackspaceDelete to Line Start
Cmd + DeleteDelete to Line End
Option + BackspaceDelete Previous Word
Option + DeleteDelete Next Word
Ctrl + TTranspose
Cmd + Shift + IFormat
Option + Shift + OOrganize Imports
Ctrl + KCut to End of Line
Ctrl + YYank

Selection & Multi-Cursor (15)

ShortcutAction
Cmd + DSelect Next Occurrence
Cmd + K, Cmd + DSkip to Next Occurrence
Ctrl + Cmd + DSelect Previous Occurrence
Cmd + Shift + LSelect All Occurrences
Cmd + Option + UpAdd Cursor Above
Cmd + Option + DownAdd Cursor Below
Cmd + ASelect All
Cmd + LSelect Line
Ctrl + Shift + RightExpand Selection
Ctrl + Shift + LeftShrink Selection
Cmd + Ctrl + UpPrevious Syntax Node
Cmd + Ctrl + DownNext Syntax Node
Cmd + Option + ESelect Enclosing Symbol
Cmd + UUndo Selection
Cmd + Shift + URedo Selection

Search & Replace (12)

ShortcutAction
Cmd + FFind in File
Cmd + Option + FReplace in File
Cmd + Shift + FFind in Project
Cmd + Shift + HReplace in Project
Cmd + GFind Next
Cmd + Shift + GFind Previous
Cmd + EUse Selection for Find
Option + EnterSelect All Matches
Cmd + Option + XToggle Regex
Cmd + Option + CToggle Case Sensitive
Cmd + Option + WToggle Whole Word
Cmd + Option + LSearch Selection Only

Code Intelligence & Git (13)

ShortcutAction
Ctrl + SpaceShow Completions
Ctrl + Shift + SpaceWord Completions
Cmd + .Code Actions
F2Rename Symbol
Cmd + ISignature Help
Cmd + K, Cmd + IHover
F8Next Diagnostic
Shift + F8Previous Diagnostic
Cmd + Shift + MProject Diagnostics
F9Toggle Breakpoint
Cmd + Option + G, BGit Blame
Cmd + 'Toggle Diff Hunks
Cmd + Ctrl + EToggle Edit Prediction

Panels, Splits & Terminal (21)

ShortcutAction
Cmd + BToggle Left Dock
Cmd + RToggle Right Dock
Cmd + JToggle Bottom Dock
Cmd + Option + YToggle All Docks
Ctrl + `Toggle Terminal Panel
Ctrl + ~New Terminal
Cmd + Shift + EProject Panel
Cmd + Shift + BOutline Panel
Ctrl + Shift + GGit Panel
Cmd + Shift + DDebug Panel
Cmd + ?Agent Panel
Cmd + \Split Right
Cmd + K, UpSplit Up
Cmd + K, DownSplit Down
Cmd + K, LeftSplit Left
Cmd + K, RightSplit Right (Pane)
Cmd + K, Cmd + LeftFocus Pane Left
Cmd + K, Cmd + RightFocus Pane Right
Cmd + K, Cmd + UpFocus Pane Up
Cmd + K, Cmd + DownFocus Pane Down
Shift + EscToggle Zoom

Folding & Display (11)

ShortcutAction
Cmd + Option + [Fold
Cmd + Option + ]Unfold
Cmd + K, Cmd + LToggle Fold
Cmd + K, Cmd + 0Fold All
Cmd + K, Cmd + JUnfold All
Cmd + K, Cmd + 1Fold Level 1
Cmd + =Zoom In
Cmd + -Zoom Out
Cmd + 0Reset Zoom
Cmd + ;Toggle Line Numbers
Ctrl + Cmd + FToggle Full Screen
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

VS Code Cursor AI Sublime Text Helix Editor Vim JetBrains Rider

Search 13,500+ shortcuts across 269 platforms

Explore All Platforms Practice Shortcuts
📜 Every shortcut on this page is taken from the official Zed Editor documentation — github.com
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

🤖 Ask AI about Zed Editor shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok