Zed Editor Keyboard Shortcuts: The Complete Reference Guide

Master the Zed editor with this complete keyboard shortcuts cheat sheet. Boost your coding speed and productivity with our ultimate reference guide.
From Startup to Scale: How Tech Services Propel Business Growth

⌨️ Zed Keyboard Shortcuts

The Ultimate Power Move

Just like in other modern editors, Ctrl + Shift + P is your best friend in Zed. It instantly fires up the Command Palette, letting you search, execute actions, or alter settings without lifting your hands from the keyboard.

⚙️ General & System

Shortcut Action
Ctrl + Shift + P Command Palette (Show all commands)
Ctrl + , Open settings
Ctrl + Shift + X Open Extensions store
Ctrl + Shift + I Open Zed logs / diagnostics
Ctrl + Q Quit Zed

📁 File & Window Management

Shortcut Action
Ctrl + N New file
Ctrl + Shift + N New Window
Ctrl + O Open file / folder
Ctrl + Alt + Shift + O Open remote folder (SSH/Collab)
Ctrl + S Save current file
Ctrl + Shift + S Save As...
Ctrl + Alt + S Save All open files
Ctrl + W Close current tab / editor
Ctrl + Shift + W Close Window
Ctrl + PageUp Switch to previous tab
Ctrl + PageDown Switch to next tab

📝 Editing & Text Manipulation

Shortcut Action
Ctrl + Z Undo
Ctrl + Shift + Z Redo
Ctrl + X Cut line / selection
Ctrl + C Copy line / selection
Ctrl + V Paste
Ctrl + Shift + V Paste from clipboard history
Ctrl + / Toggle line comment
Ctrl + Shift + / Toggle block comment
Ctrl + Shift + D Duplicate selection / current line
Alt + Up Move line up
Alt + Down Move line down
Tab Indent line
Shift + Tab Outdent line
Clipboard History

Zed records your copied items natively! Use Ctrl + Shift + V to pull up your recent clipboard history instead of overwriting important code snippets.

🔍 Search & Replace

Shortcut Action
Ctrl + F Find in current file
Ctrl + H Replace in current file
Ctrl + Shift + F Find in project (Global search)
Ctrl + Shift + H Replace in project
F3 Find next match
Shift + F3 Find previous match

✂️ Selection & Multiple Cursors

Shortcut Action
Ctrl + A Select all text
Alt + Shift + Right Expand selection (Smart select)
Alt + Shift + Left Shrink selection
Alt + Shift + Up Add cursor above
Alt + Shift + Down Add cursor below
Ctrl + Shift + Down Select next occurrence of current word
Ctrl + Shift + L Split selection into lines
Esc Clear multiple cursors / Escape selection

👁️ Interface Panels & Layouts

Shortcut Action
Ctrl + B Toggle Left Dock (Project Panel)
Ctrl + Alt + B Toggle Right Dock (Assistant/Chat)
Ctrl + J Toggle Bottom Dock (Terminal/Diagnostics)
Ctrl + Alt + Y Close All active docks
Ctrl + Shift + E Focus / Open Project Panel
Ctrl + Shift + B Focus / Open Outline Panel
Ctrl + Shift + C Focus / Open Collaboration Panel
`Ctrl + `` Focus / Open Integrated Terminal
Ctrl + Shift + M Focus / Open Diagnostics Panel
AI Integration

The Ctrl + Alt + B shortcut opens Zed's built-in AI Assistant dock panel natively. It runs fast, side-by-side with your code canvas, so you don't break your context flow.

🥞 Editor Splits (Panels)

Shortcut Action
Ctrl + K then Up Split editor Up
Ctrl + K then Down Split editor Down
Ctrl + K then Left Split editor Left
Ctrl + K then Right Split editor Right
Ctrl + K Ctrl + W Close active split pane
Shortcut Action
Ctrl + Alt + - Go back in navigation history
Ctrl + Alt + Shift + - Go forward in navigation history
Ctrl + E Go to File (Quick open)
Ctrl + Shift + O Go to Symbol in current editor
Ctrl + G Go to Line / Column number
F12 Go to Definition
Ctrl + F12 Go to Type Definition
Alt + Shift + F12 Find All References
Ctrl + . Trigger Code Actions / Quick Fix
Ctrl + Space Trigger Code Autocomplete
F8 Go to next Problem / Error
Shift + F8 Go to previous Problem / Error
Multi-OS Layouts

If you share this guide with macOS users, remember that Zed automatically remaps Ctrl to Cmd (⌘) and Alt to Option (⌥) on Apple hardware to fit system-level standards natively.

Content Creator

Ghostwriter for the dark web. I publish step-by-step ransomware guides, exploit breakdowns, and deep-dive articles on how to dismantle corporate firewalls.