Overview
Zed provides powerful code editing capabilities built on top of a fast, native editor engine. The editor supports single-line, multi-line, and auto-height modes with extensive customization options.Code Completion
Zed offers intelligent code completion powered by language servers and AI-assisted predictions.Triggering Completions
Ctrl+Space- Show completionsCtrl+Shift+Space- Show word completions
Accepting Completions
Zed provides multiple ways to accept completion suggestions:Enter- Confirm selected completionTab- Accept completion and continue
Edit Predictions
AI-powered edit predictions help you write code faster:Alt+Tab- Show/navigate edit predictionsCtrl+Cmd+E- Toggle edit predictions
Multi-Cursor Editing
Multi-cursor editing allows you to edit multiple locations simultaneously.Adding Cursors
Cmd+Ctrl+P/Cmd+Alt+Up- Add cursor aboveCmd+Ctrl+N/Cmd+Alt+Down- Add cursor belowCmd+D- Select next occurrenceCmd+Shift+L- Select all occurrences
Multi-Selection Operations
Cmd+K Cmd+D- Select next (skip current)Alt+Enter- Select all matchesCmd+Shift+L- Split into lines
Selection & Navigation
Word and Subword Movement
Alt+Left- Move to previous wordAlt+Right- Move to next wordCtrl+Alt+Left- Move to previous subwordCtrl+Alt+Right- Move to next subword
Syntax-Aware Selection
Cmd+Ctrl+Right/Ctrl+Shift+Right- Expand selectionCmd+Ctrl+Left/Ctrl+Shift+Left- Shrink selectionCmd+Alt+E- Select enclosing symbol
Line Operations
Alt+Down- Move line downAlt+Up- Move line upAlt+Shift+Down- Duplicate line downAlt+Shift+Up- Duplicate line upCmd+Shift+K- Delete line
Text Transformations
Zed includes powerful text transformation utilities:Case Conversion
Line Utilities
Rotation and Rewrapping
Cmd+K Cmd+Q/Cmd+K Q- Rewrap text
Code Formatting
Auto-Formatting
Cmd+Shift+I- Format documentAlt+Shift+O- Organize imports
Indentation
Cmd+]- IndentCmd+[- OutdentTab- Indent or accept completionShift+Tab- Outdent
Comments
Cmd+/- Toggle line comments
Code Actions
Cmd+.- Toggle code actions
Snippets
UUID Generation
Folding
Basic Folding
Cmd+K Cmd+L- Toggle foldAlt+Cmd+[- FoldAlt+Cmd+]- UnfoldCmd+K Cmd+0- Fold allCmd+K Cmd+J- Unfold all
Advanced Folding
Cmd+K Cmd+1throughCmd+K Cmd+9- Fold at level 1-9Cmd+K Cmd+[- Fold recursiveCmd+K Cmd+]- Unfold recursive
Undo/Redo
Cmd+Z- UndoCmd+Shift+Z- RedoCmd+U- Undo selectionCmd+Shift+U- Redo selection
Related Features
Navigation
File finder, symbol search, and go-to-definition
Terminal
Integrated terminal with shell integration
