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.

CommandShortcut Key Assignment
Add selection above⌘ + Alt + Up
Add selection above⌘ + Control + P
Add selection below⌘ + Alt + Down
Add selection below⌘ + Control + N
BackspaceBackspace
BackspaceControl + H
BackspaceShift + Backspace
CancelEscape
Show code actionsEnter
Confirm completionEnter
Confirm completionTab
Confirm renameEnter
First in context menuPage Up
Last in context menuPage Down
Next in context menuControl + N
Next in context menuDown
Previous in context menuControl + P
Previous in context menuUp
Copy⌘ + C
Cut⌘ + X
Cut to end of lineControl + K
DeleteControl + D
DeleteDelete
Delete line⌘ + Shift + K
Delete to start of line⌘ + Backspace
Delete to end of line⌘ + Delete
Delete to end of next subwordControl + Alt + D
Delete to end of next subwordControl + Alt + Delete
Delete to end of next wordAlt + D
Delete to end of next wordAlt + Delete
Delete to start of previous subwordControl + Alt + Backspace
Delete to start of previous subwordControl + Alt + H
Delete to start of previous wordAlt + Backspace
Delete to start of previous wordAlt + H
Delete to start of previous wordControl + W
Show cursor nameControl + ⌘ + C
Duplicate line belowAlt + Shift + Down
Duplicate line aboveAlt + Shift + Up
Find all referencesAlt + Shift + F12
FoldAlt + ⌘ + [
Format⌘ + Shift + I
Go to definitionF12
Split and show definitionAlt + F12
Go to diagnosticF8
Go to implementationShift + F12
Go to previous diagnosticShift + F8
Go to type definition⌘ + F12
Split and show type definitionAlt + ⌘ + F12
Hover⌘ + K, ⌘ + I
Indent⌘ + ]
Join linesControl + J
Move downControl + N
Move downDown
Move leftControl + B
Move leftLeft
Move line downAlt + Down
Move line upAlt + Up
Move page downControl + V
Move page downShift + Page Down
Move page upAlt + V
Move page upShift + Page Up
Move rightControl + F
Move rightRight
Move to beginning of line⌘ + Up
Move to line startControl + A
Move to line startHome
Move to line start⌘ + Left
Move to matching bracketControl + M
Move to end of line⌘ + Down
Move to end of lineControl + E
Move to end of lineEnd
Move to end of line⌘ + Right
Move to end of paragraphControl + Down
Move to end of next subwordControl + Alt + F
Move to end of next subwordControl + Alt + Right
Move to end of next wordAlt + F
Move to end of next wordAlt + Right
Move to start of previous subwordControl + Alt + B
Move to start of previous subwordControl + Alt + Left
Move to start of previous wordAlt + B
Move to start of previous wordAlt + Left
Move to start of paragraphControl + Up
Move upControl + P
Move upUp
Next screenControl + L
Outdent⌘ + [
Page downPage Down
Page upPage Up
Paste⌘ + V
Redo⌘ + Shift + Z
Redo selection⌘ + Shift + U
RenameF2
Reveal in file managerAlt + ⌘ + R
Toggle hunk diff⌘ + '
Expand all hunk diffs⌘ + "
Revert selected hunk⌘ + Alt + Z
Select all⌘ + A
Select all matches⌘ + Shift + L
Select downControl + Shift + N
Select downShift + Down
Select larger syntax nodeControl + Shift + Right
Select leftControl + Shift + B
Select leftShift + Left
Select line⌘ + L
Select next⌘ + D
Select next⌘ + K, ⌘ + D
Select previousControl + ⌘ + D
Select previous⌘ + K, Control + ⌘ + D
Select rightControl + Shift + F
Select rightShift + Right
Select smaller syntax nodeControl + Shift + Left
Select to beginning of document⌘ + Shift + Up
Select to line startControl + Shift + A
Select to line startShift + Home
Select to line start⌘ + Shift + Left
Select to line end⌘ + Shift + Down
Select to line endControl + Shift + E
Select to line endShift + End
Select to line end⌘ + Shift + Right
Select to end of paragraphControl + Shift + Down
Select to end of next subwordControl + Alt + Shift + F
Select to end of next subwordControl + Alt + Shift + Right
Select to end of next wordAlt + Shift + F
Select to end of next wordAlt + Shift + Right
Select to start of previous subwordControl + Alt + Shift + B
Select to start of previous subwordControl + Alt + Shift + Left
Select to start of previous wordAlt + Shift + B
Select to start of previous wordAlt + Shift + Left
Select to start of paragraphControl + Shift + Up
Select upControl + Shift + P
Select upShift + Up
Show character paletteControl + ⌘ + Space
Show completionControl + Space
Show inline completionAlt + \
TabTab
Previous TabShift + Tab
Toggle code actions⌘ + .
Toggle comment⌘ + /
Toggle Git Blame⌘ + Alt + G, B
Toggle line numbers⌘ + ;
TransposeControl + T
Undo⌘ + Z
Undo selection⌘ + U
UnfoldAlt + ⌘ + ]

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.

CommandShortcut Key Assignment
Add selection above⌘ + Alt + Up, ⌘ + Control + P
Add selection below⌘ + Alt + Down, ⌘ + Control + N
BackspaceBackspace, Control + H, Shift + Backspace
CancelEsc
Show code actionsEnter
Confirm completionEnter, Tab
Delete line⌘ + Shift + K
Delete to start of line⌘ + Backspace
Delete to end of line⌘ + Delete
Go to type definition⌘ + F12
Hover⌘ + K, ⌘ + I
Format⌘ + Shift + I
Move to beginning of line⌘ + Up
Move to end of line⌘ + Down
Indent⌘ + ]
Outdent⌘ + [
Redo⌘ + Shift + Z
Redo selection⌘ + Shift + U
Toggle hunk diff⌘ + '
Expand all hunk diffs⌘ + "
Revert selected hunk⌘ + Alt + Z
Select all⌘ + A
Select all matches⌘ + Shift + L
Toggle code actions⌘ + .
Toggle comment⌘ + /
Toggle Git Blame⌘ + Alt + G, B
Toggle line numbers⌘ + ;
Undo⌘ + Z
Undo selection⌘ + U
Delete to end of next wordAlt + D, Alt + Delete
Delete to start of previous wordAlt + Backspace, Alt + H, Control + W
Duplicate lineAlt + Shift + Down (down), Alt + Shift + Up (up)
Find all referencesAlt + Shift + F12
FoldAlt + ⌘ + [
Split and show type definitionAlt + ⌘ + F12
Split and show definitionAlt + F12
Move lineAlt + Down (down), Alt + Up (up)
Move to end of next wordAlt + F, Alt + Right
Move to start of previous wordAlt + B, Alt + Left
Show inline completionAlt + \
UnfoldAlt + ⌘ + ]
Reveal in file managerAlt + ⌘ + R
Delete to end of next subwordControl + Alt + D, Control + Alt + Delete
Delete to start of previous subwordControl + Alt + Backspace, Control + Alt + H
Show cursor nameControl + ⌘ + C
Cut to end of lineControl + K
DeleteControl + D, Delete
Join linesControl + J
Move downControl + N, Down
Move leftControl + B, Left
Move pageControl + V (down), Shift + Page Down (down), Alt + V (up), Shift + Page Up (up)
Move rightControl + F, Right
Move to line startControl + A, Home, ⌘ + Left
Move to matching bracketControl + M
Move to end of lineControl + E, End, ⌘ + Right
Move to end of paragraphControl + Down
Move to end of next subwordControl + Alt + F, Control + Alt + Right
Move to start of paragraphControl + Up
Move upControl + P, Up
Next screenControl + L
Move to start of previous subwordControl + Alt + B, Control + Alt + Left
Show character paletteControl + ⌘ + Space
Show completionControl + Space
TransposeControl + T
Go to definitionF12
Go to diagnosticF8
Go to implementationShift + F12
Go to previous diagnosticShift + F8
Move pagePage Down (down), Page Up (up)
RenameF2
TabTab, Shift + Tab (previous Tab)

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.

CommandShortcut Key Assignment
Activate item 1Control + 1
Activate item 2Control + 2
Activate item 3Control + 3
Activate item 4Control + 4
Activate item 5Control + 5
Activate item 6Control + 6
Activate item 7Control + 7
Activate item 8Control + 8
Activate item 9Control + 9
Activate last itemControl + 0
Activate next itemAlt + ⌘ + Right, ⌘ + }
Activate previous itemAlt + ⌘ + Left, ⌘ + {
Close active item⌘ + W
Close all items⌘ + K, ⌘ + W
Close clean items⌘ + K, U
Close inactive itemsAlt + ⌘ + T
BackControl + -
ForwardControl + _
Reopen closed item⌘ + Shift + T
Split down⌘ + K, Down
Split left⌘ + K, Left
Split right⌘ + K, Right
Split up⌘ + K, Up

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.

CommandShortcut Key Assignment
Toggle filterAlt + ⌘ + F
Toggle focus⌘ + F, ⌘ + Shift + F
Enable regex modeAlt + ⌘ + G
Enable text modeAlt + ⌘ + X
Cycle modeAlt + Tab
Select all matchesAlt + Enter
Select next match⌘ + G
Select previous match⌘ + Shift + G
Toggle case sensitivityAlt + ⌘ + C
Toggle replace⌘ + Shift + H
Toggle all wordsAlt + ⌘ + W
Close inactive tabs and panesControl + Alt + ⌘ + 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.

CommandShortcut Key Assignment
Activate pane 1⌘ + 1
Activate pane 2⌘ + 2
Activate pane 3⌘ + 3
Activate pane 4⌘ + 4
Activate pane 5⌘ + 5
Activate pane 6⌘ + 6
Activate pane 7⌘ + 7
Activate pane 8⌘ + 8
Activate pane 9⌘ + 9
Activate pane below⌘ + K, ⌘ + Down
Activate pane to the left⌘ + K, ⌘ + Left
Activate pane to the right⌘ + K, ⌘ + Right
Activate pane above⌘ + K, ⌘ + Up
Close all docksAlt + ⌘ + Y
New file⌘ + N
New terminalControl + ~
New window⌘ + Shift + N
Save⌘ + S
Save all⌘ + Alt + S
Save as⌘ + Shift + S
Save without formatting⌘ + K, S
Swap pane in direction⌘ + K, Shift + Down / Left / Right / Up
Toggle bottom dock⌘ + J
Toggle left dock⌘ + B
Toggle right dock⌘ + R
UnfollowEscape