Keyboard Shortcuts
Master Zed's keyboard shortcuts to boost productivity
Introduction to Zed Shortcuts
Keyboard shortcuts are at the heart of an efficient workflow in Zed. By learning and mastering these shortcuts, you can dramatically increase your productivity by reducing the time spent on repetitive actions and navigation.
Zed offers several shortcut presets to match your experience with other editors:
- Default: Zed's native keyboard shortcuts
- VS Code: Shortcuts similar to Visual Studio Code
- Sublime Text: Shortcuts matching Sublime Text
- Vim: Vim-style modal editing
This tutorial focuses on Zed's default keyboard shortcuts. If you're using a different preset, some shortcuts may vary. You can view your current keybindings in Settings.
Customizing Keyboard Shortcuts
Zed allows you to customize keyboard shortcuts to match your preferences and workflow.
Changing Keyboard Preset
Switch between predefined keyboard shortcut schemes:
-
Open Settings
Press ⌘, to open the Settings panel.
-
Navigate to Keybindings
Search for "keybindings" or navigate to the Keybindings section.
-
Select Preset
Choose from available presets (Default, VS Code, Sublime, Vim).
Custom Keybindings
Create your own custom keyboard shortcuts:
-
Open Keybindings File
Press ⌘⇧P, type "Preferences: Open Keyboard Shortcuts" and select it.
-
Add Custom Bindings
Add your custom keybindings in the JSON format. Each binding needs a command and a key combination.
Example of Custom Keybindings
json[ { "key": "cmd+k cmd+m", "command": "workbench.action.toggleMaximizedPanel" }, { "key": "alt+cmd+e", "command": "workbench.view.explorer" }, { "key": "cmd+shift+j", "command": "editor.action.joinLines" } ]
If you're coming from another editor, you can gradually customize Zed's shortcuts to match your muscle memory from the previous editor.
Keyboard Shortcut Reference Card
For quick reference, here is a printable card with the most essential Zed shortcuts:
Essential Shortcuts Reference
| Category | Action | Shortcut |
|---|---|---|
| General | Open File | ⌘P |
| Command Palette | ⌘⇧P | |
| Save File | ⌘S | |
| Settings | ⌘, | |
| Editing | Multiple Cursors | ⌘D or ⌥ + Click |
| Move Line | ⌥↑ / ⌥↓ | |
| Delete Line | ⌘⇧K | |
| Comment Code | ⌘/ | |
| Navigation | Find in File | ⌘F |
| Find in Project | ⌘⇧F | |
| Go to Symbol | ⌘⇧O |
What's Next?
Congratulations! You've completed the Zed 101 tutorial series and learned about all the core features of the Zed editor. With knowledge of its interface, editing capabilities, collaboration features, and keyboard shortcuts, you're well-equipped to be productive with Zed.
We recommend:
- Practicing the keyboard shortcuts daily to build muscle memory
- Exploring the Zed extension marketplace to enhance your setup
- Joining the Zed community on Discord to learn from other users
- Contributing to Zed's development on GitHub if you're interested