Shortcut Key Assignments for Zed Editor thumbnail

Shortcut Key Assignments for Zed Editor

Here is a summary of the shortcut key assignments for "Zed Editor," a new editor being developed by the creator of Atom.

Posted at: 2024.7.23

Editorial Note: We earn a commission from partner links on keyboardista - English version. Commissions do not affect our editors' opinions or evaluations.

Common Shortcuts

First are the common shortcut key assignments.

Basic editor operations are supplemented with Emacs-style shortcuts, making these assignments familiar to users of Atom, Visual Studio Code, and similar editors.

ActionShortcut
Command
ShiftCmd (⌘)I
Add selection above
AltCmd (⌘)
Add selection above
CtrlCmd (⌘)P
Add selection below
AltCmd (⌘)
Add selection below
CtrlCmd (⌘)N
Backspace
Backspace
Backspace
CtrlH
Backspace
ShiftBackspace
Cancel
ESC
Show code actions
Enter
Confirm completion
Enter
Confirm completion
Tab
Confirm rename
Enter
First in context menu
PageUp
Last in context menu
PageDown
Next in context menu
CtrlN
Next in context menu
Previous in context menu
CtrlP
Previous in context menu
Copy
Cmd (⌘)C
Cut
Cmd (⌘)X
Cut to end of line
CtrlK
Delete
CtrlD
Delete
Delete
Delete line
ShiftCmd (⌘)K
Delete to start of line
Cmd (⌘)Backspace
Delete to end of line
Cmd (⌘)Delete
Delete to end of next subword
CtrlAltD
Delete to end of next subword
CtrlAltDelete
Delete to end of next word
AltD
Delete to end of next word
AltDelete
Delete to start of previous subword
CtrlAltBackspace
Delete to start of previous subword
CtrlAltH
Delete to start of previous word
AltBackspace
Delete to start of previous word
AltH
Delete to start of previous word
CtrlW
Show cursor name
CtrlCmd (⌘)C
Duplicate line below
ShiftAlt
Duplicate line above
ShiftAlt
Find all references
ShiftAltF12
Fold
AltCmd (⌘)[
Format
ShiftCmd (⌘)I
Go to definition
F12
Split and show definition
AltF12
Go to diagnostic
F8
Go to implementation
ShiftF12
Go to previous diagnostic
ShiftF8
Go to type definition
Cmd (⌘)F12
Split and show type definition
AltCmd (⌘)F12
Hover
Cmd (⌘)+
I/K
Indent
Cmd (⌘)]
Join lines
CtrlJ
Move down
CtrlN
Move down
Move left
CtrlB
Move left
Move line down
Alt
Move line up
Alt
Move page down
CtrlV
Move page down
ShiftPageDown
Move page up
AltV
Move page up
ShiftPageUp
Move right
CtrlF
Move right
Move to beginning of line
Cmd (⌘)
Move to line start
CtrlA
Move to line start
HOME
Move to line start
Cmd (⌘)
Move to matching bracket
CtrlM
Move to end of line
Cmd (⌘)
Move to end of line
CtrlE
Move to end of line
END
Move to end of line
Cmd (⌘)
Move to end of paragraph
Ctrl
Move to end of next subword
CtrlAltF
Move to end of next subword
CtrlAlt
Move to end of next word
AltF
Move to end of next word
Alt
Move to start of previous subword
CtrlAltB
Move to start of previous subword
CtrlAlt
Move to start of previous word
AltB
Move to start of previous word
Alt
Move to start of paragraph
Ctrl
Move up
CtrlP
Move up
Next screen
CtrlL
Outdent
Cmd (⌘)[
Page down
PageDown
Page up
PageUp
Paste
Cmd (⌘)V
Redo
ShiftCmd (⌘)Z
Redo selection
ShiftCmd (⌘)U
Rename
F2
Reveal in file manager
AltCmd (⌘)R
Toggle hunk diff
Cmd (⌘)QUOTE
Expand all hunk diffs
Cmd (⌘)
Revert selected hunk
AltCmd (⌘)Z
Select all
Cmd (⌘)A
Select all matches
ShiftCmd (⌘)L
Select down
CtrlShiftN
Select down
Shift
Select larger syntax node
CtrlShift
Select left
CtrlShiftB
Select left
Shift
Select line
Cmd (⌘)L
Select next
Cmd (⌘)D
Select next
Cmd (⌘)+
D/K
Select previous
CtrlCmd (⌘)D
Select previous
Ctrl+Cmd (⌘)+
D/K
Select right
CtrlShiftF
Select right
Shift
Select smaller syntax node
CtrlShift
Select to beginning of document
ShiftCmd (⌘)
Select to line start
CtrlShiftA
Select to line start
ShiftHOME
Select to line start
ShiftCmd (⌘)
Select to line end
ShiftCmd (⌘)
Select to line end
CtrlShiftE
Select to line end
ShiftEND
Select to line end
ShiftCmd (⌘)
Select to end of paragraph
CtrlShift
Select to end of next subword
CtrlShiftAltF
Select to end of next subword
CtrlShiftAlt
Select to end of next word
ShiftAltF
Select to end of next word
ShiftAlt
Select to start of previous subword
CtrlShiftAltB
Select to start of previous subword
CtrlShiftAlt
Select to start of previous word
ShiftAltB
Select to start of previous word
ShiftAlt
Select to start of paragraph
CtrlShift
Select up
CtrlShiftP
Select up
Shift
Show character palette
CtrlCmd (⌘)Space
Show completion
CtrlSpace
Show inline completion
Alt\
Tab
Tab
Previous Tab
ShiftTab
Toggle code actions
Cmd (⌘).
Toggle comment
Cmd (⌘)
Toggle Git Blame
Alt+Cmd (⌘)+
B/G
Toggle line numbers
Cmd (⌘);
Transpose
CtrlT
Undo
Cmd (⌘)Z
Undo selection
Cmd (⌘)U
Unfold
AltCmd (⌘)]

Editor

Next are the shortcut key assignments exclusive to the editor.

There are many special operations, so it may be difficult to memorize them all, but if you remember them by the initial key such as "Ctrl," "Alt," or "⌘," it will be relatively easier.

By mastering these shortcuts, you can dramatically speed up your editor operations.

ActionShortcut
Command
Add selection above
Ctrl+Alt+Cmd (⌘)+
/P
Add selection below
Ctrl+Alt+Cmd (⌘)+
/N
Backspace
Ctrl+Shift+
Backspace/H
Cancel
ESC
Show code actions
Enter
Confirm completion
Enter/Tab
Delete line
ShiftCmd (⌘)K
Delete to start of line
Cmd (⌘)Backspace
Delete to end of line
Cmd (⌘)Delete
Go to type definition
Cmd (⌘)F12
Hover
Cmd (⌘)+
I/K
Format
ShiftCmd (⌘)I
Move to beginning of line
Cmd (⌘)
Move to end of line
Cmd (⌘)
Indent
Cmd (⌘)]
Outdent
Cmd (⌘)[
Redo
ShiftCmd (⌘)Z
Redo selection
ShiftCmd (⌘)U
Toggle hunk diff
Cmd (⌘)QUOTE
Expand all hunk diffs
Cmd (⌘)
Revert selected hunk
AltCmd (⌘)Z
Select all
Cmd (⌘)A
Select all matches
ShiftCmd (⌘)L
Toggle code actions
Cmd (⌘).
Toggle comment
Cmd (⌘)
Toggle Git Blame
Alt+Cmd (⌘)+
B/G
Toggle line numbers
Cmd (⌘);
Undo
Cmd (⌘)Z
Undo selection
Cmd (⌘)U
Delete to end of next word
Alt+
D/Delete
Delete to start of previous word
Ctrl+Alt+
Backspace/H/W
Duplicate line
Shift+Alt+
/
Find all references
ShiftAltF12
Fold
AltCmd (⌘)[
Split and show type definition
AltCmd (⌘)F12
Split and show definition
AltF12
Move line
Alt+
/
Move to end of next word
Alt+
/F
Move to start of previous word
Alt+
/B
Show inline completion
Alt\
Unfold
AltCmd (⌘)]
Reveal in file manager
AltCmd (⌘)R
Delete to end of next subword
Ctrl+Alt+
D/Delete
Delete to start of previous subword
Ctrl+Alt+
Backspace/H
Show cursor name
CtrlCmd (⌘)C
Cut to end of line
CtrlK
Delete
Ctrl+
D/Delete
Join lines
CtrlJ
Move down
Ctrl+
/N
Move left
Ctrl+
/B
Move page
Ctrl+Shift+Alt+
PageDown/PageUp/V
Move right
Ctrl+
/F
Move to line start
Ctrl+Cmd (⌘)+
A//HOME
Move to matching bracket
CtrlM
Move to end of line
Ctrl+Cmd (⌘)+
/E/END
Move to end of paragraph
Ctrl
Move to end of next subword
Ctrl+Alt+
/F
Move to start of paragraph
Ctrl
Move up
Ctrl+
/P
Next screen
CtrlL
Move to start of previous subword
Ctrl+Alt+
/B
Show character palette
CtrlCmd (⌘)Space
Show completion
CtrlSpace
Transpose
CtrlT
Go to definition
F12
Go to diagnostic
F8
Go to implementation
ShiftF12
Go to previous diagnostic
ShiftF8
Move page
PageDown/PageUp
Rename
F2
Tab
ShiftTab

Pane Operations

These are shortcut key assignments for pane operations, unique to multi-pane editors.

By mastering these, you can greatly reduce the need for mouse or trackpad operations.

ActionShortcut
Command
Activate item 1
Ctrl1
Activate item 2
Ctrl2
Activate item 3
Ctrl3
Activate item 4
Ctrl4
Activate item 5
Ctrl5
Activate item 6
Ctrl6
Activate item 7
Ctrl7
Activate item 8
Ctrl8
Activate item 9
Ctrl9
Activate last item
Ctrl0
Activate next item
AltCmd (⌘)
Activate previous item
AltCmd (⌘)
Close active item
Cmd (⌘)W
Close all items
Cmd (⌘)+
K/W
Close clean items
Cmd (⌘)+
K/U
Close inactive items
AltCmd (⌘)T
Back
Ctrl-
Forward
Ctrl
Reopen closed item
ShiftCmd (⌘)T
Split down
Cmd (⌘)+
/K
Split left
Cmd (⌘)+
/K
Split right
Cmd (⌘)+
/K
Split up
Cmd (⌘)+
/K

Zed offers powerful search features compared to other editors. Most shortcuts are based on Alt + ⌘, so once you get used to them, you can master them quickly.

ActionShortcut
Command
Toggle filter
AltCmd (⌘)F
Toggle focus
ShiftCmd (⌘)F
Enable regex mode
AltCmd (⌘)G
Enable text mode
AltCmd (⌘)X
Cycle mode
AltTab
Select all matches
AltEnter
Select next match
Cmd (⌘)G
Select previous match
ShiftCmd (⌘)G
Toggle case sensitivity
AltCmd (⌘)C
Toggle replace
ShiftCmd (⌘)H
Toggle all words
AltCmd (⌘)W
Close inactive tabs and panes
CtrlAltCmd (⌘)W

Workspace

These are shortcut key assignments for the entire workspace.

Shortcuts related to moving between panes, activating panes, and terminal operations are the main focus. Many of these are frequently used, so be sure to master them.

ActionShortcut
Command
Activate pane 1
Cmd (⌘)1
Activate pane 2
Cmd (⌘)2
Activate pane 3
Cmd (⌘)3
Activate pane 4
Cmd (⌘)4
Activate pane 5
Cmd (⌘)5
Activate pane 6
Cmd (⌘)6
Activate pane 7
Cmd (⌘)7
Activate pane 8
Cmd (⌘)8
Activate pane 9
Cmd (⌘)9
Activate pane below
Cmd (⌘)+
/K
Activate pane to the left
Cmd (⌘)+
/K
Activate pane to the right
Cmd (⌘)+
/K
Activate pane above
Cmd (⌘)+
/K
Close all docks
AltCmd (⌘)Y
New file
Cmd (⌘)N
New terminal
Ctrl`
New window
ShiftCmd (⌘)N
Save
Cmd (⌘)S
Save all
AltCmd (⌘)S
Save as
ShiftCmd (⌘)S
Save without formatting
Cmd (⌘)+
K/S
Swap pane in direction
Shift+Cmd (⌘)+
K/K
Toggle bottom dock
Cmd (⌘)J
Toggle left dock
Cmd (⌘)B
Toggle right dock
Cmd (⌘)R
Unfollow
ESC