Keyboard shortcuts
All keyboard shortcuts for the block editor — block-level navigation and editing, inline text formatting, and selection. On Mac, use ⌘ in place of Ctrl for all shortcuts.
On Mac, use ⌘ in place of Ctrl for all shortcuts.
Block shortcuts
| Shortcut | Description |
|---|---|
/ | Open the slash command palette to insert a new block type. |
Enter | Create a new block. If the cursor is mid-sentence, the text splits at the cursor. |
Backspace | On an empty block: delete the block and move focus to the block above. On a non-empty block at the start: merge up into the previous block. |
Tab | Indent the current block one level (nests it inside a toggle above, or increases list indent). |
Shift+Tab | Dedent the current block. Extracts it from a toggle or decreases list indent. |
Ctrl+Z | Undo the last change. Operates on the in-memory Yjs document. |
Ctrl+Shift+Z | Redo. |
Ctrl+A | Progressive selection: first press selects all text in the current block; second press enters block selection mode for the current block; third press selects all blocks in the document. |
Ctrl+C | When 2+ blocks are selected in block mode: copies the blocks as plain text (preserving indentation). In text mode: standard copy. |
↑+↓ | Move focus between blocks when at the top or bottom of a block's text content. |
Space | On a completely empty block: opens the inline AI prompt. |
Text formatting
These shortcuts apply to the selected text within a block (TipTap inline formatting).
| Shortcut | Format |
|---|---|
Ctrl+B | Bold |
Ctrl+I | Italic |
Ctrl+U | Underline |
Ctrl+Shift+S | Strikethrough |
Ctrl+E | Inline code |
Ctrl+K | Insert / edit link |
Selection toolbar
Selecting any text reveals the floating selection toolbar. From there, all formatting shortcuts above remain active. Additional toolbar shortcuts:
| Shortcut | Description |
|---|---|
Escape | Dismiss the selection toolbar and collapse the selection. |
Enter | In the AI custom prompt field: submit the prompt. |
Enter | In the link input field: apply the link. |
Markdown shortcuts
Type these at the start of an empty block followed by Space or Enter to convert the block type automatically.
| Prefix | Creates |
|---|---|
| # | Heading 1 |
| ## | Heading 2 |
| ### | Heading 3 |
| - | Bulleted list |
| * | Bulleted list |
| 1. | Numbered list |
| > | Toggle |
| >> | Quote |
| [] | To-do checkbox |
| --- | Divider |
| ``` | Code block |
Code block shortcuts
| Shortcut | Description |
|---|---|
Tab | Insert two spaces at the cursor. Does not move focus out of the code block. |
Escape | Blur the code editor and return focus to the block editor. |
↑ | On the first line: move focus to the block above. |
↓ | On the last line: move focus to the block below. |
Ctrl+Z | Undo within the code block (CodeMirror's own undo history). |
Focus mode
| Shortcut | Description |
|---|---|
Ctrl+Shift+F | Toggle focus mode on / off. |
Escape | Exit focus mode. |