DocsKeyboard Shortcuts
Keyboard Shortcuts
3 min read
Keyboard shortcuts for the editor, AI features and presentation mode.
These shortcuts work in the editor. On Mac use ⌘; on Windows and Linux use Ctrl. The command palette lists every action and is the fastest way to find the rest.
Editor
| Action | Mac | Windows / Linux |
|---|---|---|
| Command palette (every action) | ⌘K | Ctrl+K |
| Save | ⌘S | Ctrl+S |
| Undo | ⌘Z | Ctrl+Z |
| Redo | ⌘⇧Z | Ctrl+Shift+Z / Ctrl+Y |
| Find in code | ⌘F | Ctrl+F |
| Find and replace | ⌘H | Ctrl+H |
| Toggle comment | ⌘/ | Ctrl+/ |
| Indent | Tab | Tab |
| Leave full screen / dismiss | Esc | Esc |
AI Features
| Action | Mac | Windows / Linux |
|---|---|---|
| Generate with AI (in the prompt bar) | ⌘↵ | Ctrl+Enter |
| Generate documentation | ⌘⇧D | Ctrl+Shift+D |
| Suggest the next line (autocomplete) | ⌘→ | Ctrl+→ |
| Accept suggestion | Tab | Tab |
| Dismiss suggestion | Esc | Esc |
Refine, Refine Styles, Explain, the AI chat and the other AI actions are in the command palette (⌘K / Ctrl+K).
Editing in the Diagram
| Action | How |
|---|---|
| Select a node or an arrow | Click it |
| Create a node | Double-click the canvas |
| Create an arrow | Shift + drag from one node to another |
| Zoom / pan | Use the on-canvas controls, or scroll and drag |
Presentation Mode
| Action | Key |
|---|---|
| Toggle Presenter View (Pro) | P |
| Select a node / clear selection | Click a node / click empty space |
| Clear selection, then exit | Esc |