About the keys listed here
These are the defaults. Assignments you have changed are listed in the in-app help on F12.
Files and output
| Operation | Keys |
|---|---|
| New tab / new window | Ctrl+N / Ctrl+Shift+N |
| Open a file / a folder | Ctrl+O / Ctrl+Shift+O |
| Save / save as | Ctrl+S / Ctrl+Shift+S |
| Encrypt / lock | Alt+Shift+S |
| Export HTML / PDF | Ctrl+Shift+E / Ctrl+L |
| Ctrl+P | |
| Close a tab / reopen a closed tab | Ctrl+W / Ctrl+Shift+T |
| Close all tabs | Ctrl+Shift+W |
| Previous / next tab | Ctrl+PageUp / Ctrl+PageDown |
| New workspace / close workspace | Ctrl+Alt+N / Ctrl+Alt+C |
| Close the window | Ctrl+Q |
| Exit the app | Ctrl+Alt+Q |
Editing and formatting
| Operation | Keys |
|---|---|
| Undo / redo | Ctrl+Z / Ctrl+Y |
| Bold / italic | Ctrl+B / Ctrl+I |
| Strikethrough / highlight | Alt+Shift+5 / Ctrl+R |
| Heading 1 to 3 | Ctrl+1 / Ctrl+2 / Ctrl+3 |
| Link / image syntax | Ctrl+K / Ctrl+Shift+I |
| Inline code | Ctrl+Shift+K |
| Code block | Ctrl+Shift+` |
| Quote | Ctrl+Shift+. |
| Bullet / numbered list | Ctrl+Shift+8 / Ctrl+Shift+7 |
| Horizontal rule | Shift+Space |
| Table / format the document | Alt+Shift+T / Alt+Shift+F |
| Toggle comment | Ctrl+/ |
| Paste without formatting | Ctrl+Shift+V |
| Front matter | Ctrl+- |
| Date / time | Ctrl++ / Ctrl+; |
Date and time depend on your keyboard layout. On a JIS layout, the date is Ctrl+; and the time is Ctrl+:.
Search and navigation
| Operation | Keys |
|---|---|
| Search / replace in the document | Ctrl+F / Ctrl+H |
| Search / replace across files | Ctrl+Shift+F / Ctrl+Shift+H |
| Next / previous match | F3 / Shift+F3 |
| Back / forward | Alt+← / Alt+→ |
| Go to the start / the end | Ctrl+Home / Ctrl+End |
| Go to a line | Ctrl+G |
View and panels
| Operation | Keys |
|---|---|
| Switch source / preview | F1 or Ctrl+E |
| Switch dark / light | Ctrl+D |
| Backlinks | F6 |
| File explorer | F7 |
| Outline | F8 |
| Full-screen preview | F11 |
| Reload the preview | F5 |
| Formatting toolbar | Ctrl+T |
| Command terminal | Ctrl+Space |
| Add to / remove from favorites | Ctrl+Shift+D |
| Settings / help | Ctrl+, / F12 |
Line operations in the editor
| Operation | Keys |
|---|---|
| Move the line up / down | Alt+↑ / Alt+↓ |
| Duplicate the line up / down | Alt+Shift+↑ / Alt+Shift+↓ |
| Insert a blank line below / above | Ctrl+Enter / Ctrl+Shift+Enter |
| Insert a line-break tag | Shift+Enter |
| Remove the Markdown markers at line start | Shift+Tab |
These editor-only line operations cannot be changed in the settings.
Change an assignment
Find the command under Settings → Shortcuts, click its assignment field and press the keys you want. A command takes up to two assignments.
Choosing keys that another command uses removes that command’s assignment. Restoring the defaults resets every assignment at once. See Display and input settings for details.