Skip to content

Hotkeys

Windows and Linux share the same shortcuts. On a Mac, ⌘ takes the place of Ctrl, except where the table shows a different combination because macOS already uses the usual one.

Change any shortcut in Settings > Hotkeys. Type part of a command’s name in the search box to find it, click its shortcut, and press the new combination.

Command Windows and Linux macOS
Save now Ctrl+S ⌘S
Find and replace in the post Ctrl+F ⌘F
Insert link Ctrl+K ⌘K
Link to an entry Ctrl+Shift+K ⇧⌘K
Insert image Ctrl+’ ⌘’
Insert MDX component Ctrl+/ ⌘/
Toggle editing toolbar Ctrl+Shift+E ⇧⌘E
Toggle zen mode Ctrl+Shift+Z ⌃⌘Z
Toggle typewriter mode Ctrl+Shift+T ⇧⌘T
Rename entry F2 F2
Reload entry from disk Ctrl+R ⌘R

Undo is Ctrl+Z. Redo is Ctrl+Y on Windows and Linux, and ⇧⌘Z on a Mac.

Command Windows and Linux macOS
Command palette Ctrl+P ⌘P
Open entry Ctrl+O or Ctrl+T ⌘O or ⌘T
New entry Ctrl+N ⌘N
Search everywhere Ctrl+Shift+O ⇧⌘O
Toggle dashboard Ctrl+M ⇧⌘H
Navigate back Alt+Left ⌥⌘←
Navigate forward Alt+Right ⌥⌘→
Next tab Ctrl+Tab ⌃Tab or ⇧⌘]
Previous tab Ctrl+Shift+Tab ⌃⇧Tab or ⇧⌘[
Go to tab 1 to 8 Ctrl+1 to Ctrl+8 ⌘1 to ⌘8
Go to last tab Ctrl+9 ⌘9
Close tab Ctrl+W ⌘W
Toggle left sidebar Ctrl+Alt+Z ⌥⌘Z
Toggle right sidebar Ctrl+Alt+X ⌥⌘X
New window Ctrl+Shift+N ⇧⌘N
Command Windows and Linux macOS
Toggle site preview Ctrl+E ⌘E
SEO audit Ctrl+Shift+A ⇧⌘A
Publish Ctrl+Shift+S ⇧⌘S
Pull from remote Ctrl+Shift+P ⇧⌘P
Open terminal here Ctrl+Shift+D ⇧⌘D
Open Astro config Ctrl+Shift+, ⇧⌘,
Command Windows and Linux macOS
Open settings Ctrl+, ⌘,
Toggle light and dark Ctrl+Shift+M ⇧⌘M
Toggle full screen F11 ⌃⌘F

Every other command, such as the fold commands, Toggle source mode, and Copy heading link, runs from the command palette and can be given a shortcut in Settings > Hotkeys.