Keyboard Shortcuts

File

Shortcut Action
⌘N New file
⌘O Open file
⌘S Save
⌘R Reload file
⌘P Print
⌘W Close — just the file when the sidebar is open, the tab in a tab group, otherwise the window

View

Shortcut Action
⌃⌘S Toggle sidebar
⌥⌘T Hide or show the toolbar
⌃⌘Z Zen Mode
⌃⌘T Table of contents
⌘+ Zoom in
⌘− Zoom out
⇧⌘0 Reset zoom
⌥Z Full-width text
⌘F Find
⌘G Find next
⇧⌘G Find previous
Esc Close the find bar

Sidebar

These work while the sidebar has keyboard focus. Press Tab in the preview to move the keyboard there. In the editor, Tab types a tab, so hide the editor first (⇧⌘E).

Shortcut Action
↓ / ↑ Move to the next or previous row; a file opens as you land on it
→ / ← Open or close a folder or section, or step into or out of it
Return or Space Do what a click on the row does
⌘Return Move the file you arrowed to into a new tab. The tab goes back to the file it showed before
⌃Return Open the row's right-click menu
⌘↑ Go back from a space's page

While the document has unsaved changes, the arrow keys only move the highlight. Press Return to open the file in a new tab.

Edit Mode

Shortcut Action
⇧⌘E Toggle editor
⇧⌘P Toggle preview pane
⇧⌘S Toggle syntax highlighting
⇧⌘Y Toggle scroll sync
⌥⌘B Toggle formatting toolbar

Formatting (Edit Mode)

Shortcut Action
⌘B Bold
⌘I Italic
⌘E Inline code
⌘K Link
⌥⇧⌘1 Heading 1
⌥⇧⌘2 Heading 2
⌥⇧⌘3 Heading 3
⇧⌘O Ordered list
⇧⌘U Unordered list
⇧⌘T Task list
⇧⌘. Blockquote
⌘] Indent
⌘[ Outdent

Annotations

Shortcut Action
⇧⌘A Toggle annotation toolbar
⇧⌘N Open or close the document note
⇧⌘B Add block note
⌥⇧⌘C Copy annotations
⌥⇧⌘S Send annotations to AI (when turned on in Settings > AI)
⌥⇧⌘Z Restore annotations from last copy
⌥⇧⌘I Import annotations
⌥⇧⌘E Export annotations
Esc Close the document note or annotation toolbar

Window

Shortcut Action
⇧⌘L Fill Left Side
⇧⌘R Fill Right Side
⇧⌘C Center window
⇧⌘F Full screen
⇧⌘↓ Stretch down
⇧⌘↑ Stretch up
⌘0 Restore window size
⌘1–⌘8 Switch to tab 1–8
⌘9 Switch to last tab