Margin supports keyboard shortcuts throughout the app. Learn these to move faster.
These work anywhere in the app:
| Shortcut | Action |
|---|---|
Ctrl/Cmd + S | Save current document |
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 |
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) |
| Shortcut | Action |
|---|---|
Ctrl/Cmd + Enter | Run all cells |
Ctrl/Cmd + S | Save notebook |
| 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 |
| Shortcut | Action |
|---|---|
↑ / ↓ | Navigate between blocks |
Enter | Create new paragraph |
Backspace (empty block) | Delete block |
/ in briefs instead of remembering Markdown syntax ↑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
/ Command menu
Cmd+B Bold
Cmd+I Italic
Cmd+K Link
Cmd+S Save
Cmd+⇧+N Notebook preview