# Keyboard shortcuts

Shortcuts for the editor and published sites.

On Windows and Linux, use `Ctrl` where macOS uses `⌘`, and `Alt` for `⌥`.

## Editor

| Action | Shortcut |
| --- | --- |
| Insert a block | `/` at the start of a line |
| Bold | `⌘B` |
| Italic | `⌘I` |
| Underline | `⌘U` |
| Strikethrough | `⌘⇧S` |
| Inline code | `⌘E` |
| Comment on the selection | `⌘⌥M` |
| Undo / redo | `⌘Z` / `⌘⇧Z` |

## Markdown as you type

| Type | To get |
| --- | --- |
| `#`, `##`, `###` and a space | Heading 1, 2, 3 |
| `-` or `*` and a space | Bulleted list |
| `1.` and a space | Numbered list |
| `[ ]` and a space | Task list |
| `>` and a space | Quote |
| `` ``` `` | Code block |
| `---` | Divider |
| `$$x$$` | Inline math |

## Published sites

| Action | Shortcut |
| --- | --- |
| Search | `⌘K` |
