Keyboard shortcuts

Every keyboard shortcut in the Dokly editor.

Shortcuts shown for Mac. On Windows/Linux, replace with Ctrl.

File operations#

ShortcutAction
⌘SSave the current page
⌘NNew page
⌘DDuplicate the selected block
⌘⌫Delete the selected block
⌘ZUndo
⌘⇧ZRedo
⌘POpen page picker (jump to any page)
⌘KOpen AI menu / search palette (depends on context)

Insert blocks#

ShortcutBlock
/Open slash menu
# Heading 1
## Heading 2
### Heading 3
> Blockquote
- Bullet list
1. Ordered list
- [ ] Task list
```Code block (then type the language)
---Horizontal divider

Text formatting#

ShortcutAction
⌘BBold
⌘IItalic
⌘UUnderline
⌘⇧XStrikethrough
⌘EInline code
⌘KLink (with text selected)
⌘\Clear formatting

Block movement#

ShortcutAction
⌥↑Move block up
⌥↓Move block down
TabIndent (in lists)
⇧TabOutdent

Selection#

ShortcutAction
⌘ASelect current block
⌘A (twice)Select entire page
⇧↑ / ⇧↓Extend selection by line
ShortcutAction
⌘PJump to page
⌘[Back in page history
⌘]Forward in page history
⌘BToggle sidebar

Editor view#

ShortcutAction
⌘\Toggle preview pane
⌘⇧SToggle source view (raw MDX)
⌘⇧DToggle dark mode

AI#

ShortcutAction
⌘KOpen AI menu (with text selected)
⌘JContinue writing
⌘⇧IImprove selected text

If you live in the editor, print this page or pin it. The keyboard shortcuts compound — every shortcut you internalize saves you ~5 mouse trips a day.

Where next#