Keyboard Shortcuts
Speed up your workflow with keyboard shortcuts for notebooks and briefs.
Margin supports keyboard shortcuts throughout the app. Learn these to move faster.
Global Shortcuts
These work anywhere in the app:
| Shortcut | Action |
|---|---|
Ctrl/Cmd + S | Save current document |
Notebook Shortcuts
Command Mode
When a cell is selected but not being edited (blue border):
| Shortcut | Action |
|---|---|
Enter | Enter edit mode |
J or ↓ | Select cell below |
K or ↑ | Select cell above |
Shift + Enter | Run cell and advance |
B | Insert cell below |
A | Insert cell above |
DD | Delete cell (press D twice) |
M | Convert to Markdown |
Y | Convert to code |
Shift + J | Move cell down |
Shift + K | Move cell up |
X | Cut cell |
C | Copy cell |
V | Paste cell below |
Z | Undo cell deletion |
O | Toggle output visibility |
Edit Mode
When you're typing inside a cell:
| Shortcut | Action |
|---|---|
Escape | Exit to command mode |
Shift + Enter | Run cell and advance |
Tab | Accept code completion |
Ctrl/Cmd + I | Show inspector (documentation) |
Toolbar Actions
| Shortcut | Action |
|---|---|
Ctrl/Cmd + Enter | Run all cells |
Ctrl/Cmd + S | Save notebook |
Brief Editor Shortcuts
Editing
| Shortcut | Action |
|---|---|
/ | Open command menu (block types) |
Ctrl/Cmd + B | Bold |
Ctrl/Cmd + I | Italic |
Ctrl/Cmd + K | Insert link |
Ctrl/Cmd + S | Save brief |
Ctrl/Cmd + Shift + N | Toggle notebook preview |
Navigation
| Shortcut | Action |
|---|---|
↑ / ↓ | Navigate between blocks |
Enter | Create new paragraph |
Backspace (empty block) | Delete block |
Tips
- Stay in command mode – Navigate with J/K, only Enter when you need to edit
- Run and advance – Shift+Enter is your friend for iterating quickly
- DD to delete – Mimics Vim's delete line, quick and reversible with Z
- Use the command menu – Press
/in briefs instead of remembering Markdown syntax
Quick Reference Card
Notebook (Command Mode)
↑K Move up
↓J Move down
Enter Edit cell
Shift+↵ Run & advance
A Add above
B Add below
DD Delete
Z Undo delete
M → Markdown
Y → Code
Shift+J/K Move cell
X Cut
C Copy
V Paste
O Toggle output
Brief Editor
/ Command menu
Cmd+B Bold
Cmd+I Italic
Cmd+K Link
Cmd+S Save
Cmd+⇧+N Notebook preview