Keyboard Shortcuts
Every keyboard shortcut in the editor, by the part of the editor it belongs to.
Ctrl on Windows and Linux is Cmd on macOS, and Alt is Option.
Editor
| Action | Windows/Linux | macOS |
|---|---|---|
| Open a file | Ctrl + O | Cmd + O |
| Search the diagram | Ctrl + F | Cmd + F |
| Export the diagram | Ctrl + S | Cmd + S |
| Close all tabs except the active one | Alt + Ctrl + K | Option + Cmd + K |
These work while the canvas has focus. Inside the text editor, Ctrl + F searches the text and Ctrl + S downloads the document, or writes it to its file when the file was opened with the desktop app.
Close All and Close Saved are in the tab options menu, the three dots next to the tabs.
Canvas
| Action | Windows/Linux | macOS |
|---|---|---|
| Center the first node | Shift + 1 | Shift + 1 |
| Fit the diagram to the view | Shift + 2 | Shift + 2 |
| Zoom in | Ctrl + + or Shift + + | Cmd + + or Shift + + |
| Zoom out | Ctrl + - or Shift + - | Cmd + - or Shift + - |
| Clear the selection | Esc | Esc |
| Delete the selected nodes | Delete or Backspace | Delete or Backspace |
| Cancel drawing an edge or moving a node | Esc | Esc |
Deleting nodes works in ToDiagram documents and Mermaid flowcharts and entity relationship diagrams. See Edit on the Diagram.
Editing a field
After you double-click a field on the canvas:
| Action | Key |
|---|---|
| Save | Enter |
| Cancel | Esc |
Search
While the search box is open:
| Action | Key |
|---|---|
| Next match | Enter or ↓ |
| Previous match | Shift + Enter or ↑ |
| Close search | Esc |
Animation
While an animation plays:
| Action | Key |
|---|---|
| Pause or resume | Space |
| One step back or forward | ← → |
| Stop | Esc |
Tree view
| Action | Key |
|---|---|
| Move between rows | ↑ ↓ |
| Expand or collapse a row, or move to its parent | → ← |
| First or last row | Home End |
| Expand or collapse a row, or edit its value | Enter |
| Rename the key | F2 |
Documents panel
While the Documents panel is open:
| Action | Key |
|---|---|
| Search documents | / |
| Move through the list | ↑ ↓ |
| Open the highlighted document | Enter |
| Rename the highlighted document | F2 |
| Clear the search, then close the panel | Esc |