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:

ShortcutAction
Ctrl/Cmd + SSave current document

Notebook Shortcuts

Command Mode

When a cell is selected but not being edited (blue border):

ShortcutAction
EnterEnter edit mode
J or Select cell below
K or Select cell above
Shift + EnterRun cell and advance
BInsert cell below
AInsert cell above
DDDelete cell (press D twice)
MConvert to Markdown
YConvert to code
Shift + JMove cell down
Shift + KMove cell up
XCut cell
CCopy cell
VPaste cell below
ZUndo cell deletion
OToggle output visibility

Edit Mode

When you're typing inside a cell:

ShortcutAction
EscapeExit to command mode
Shift + EnterRun cell and advance
TabAccept code completion
Ctrl/Cmd + IShow inspector (documentation)

Toolbar Actions

ShortcutAction
Ctrl/Cmd + EnterRun all cells
Ctrl/Cmd + SSave notebook

Brief Editor Shortcuts

Editing

ShortcutAction
/Open command menu (block types)
Ctrl/Cmd + BBold
Ctrl/Cmd + IItalic
Ctrl/Cmd + KInsert link
Ctrl/Cmd + SSave brief
Ctrl/Cmd + Shift + NToggle notebook preview
ShortcutAction
/ Navigate between blocks
EnterCreate new paragraph
Backspace (empty block)Delete block

Tips

  1. Stay in command mode – Navigate with J/K, only Enter when you need to edit
  2. Run and advance – Shift+Enter is your friend for iterating quickly
  3. DD to delete – Mimics Vim's delete line, quick and reversible with Z
  4. 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