# Keyboard shortcuts

> Every keyboard shortcut in the Typemark editor and dashboard.

The shortcuts below use `Cmd`. On Windows and Linux, use `Ctrl` instead, and `Alt` where you see `Option`.

## Text formatting

Visual mode, with text selected:

| Shortcut | Action |
|----------|--------|
| `Cmd+B` | Bold |
| `Cmd+I` | Italic |
| `Cmd+Shift+S` | Strikethrough |
| `Cmd+E` | Inline code |
| `Cmd+K` | Add a link |

## Blocks

Visual mode:

| Shortcut | Action |
|----------|--------|
| `/` | Open the slash menu |
| `Cmd+Option+1` | Heading 1 |
| `Cmd+Option+2` | Heading 2 |
| `Cmd+Option+3` | Heading 3 |
| `Cmd+Shift+8` | Bullet list |
| `Cmd+Shift+7` | Numbered list |
| `Cmd+Shift+9` | Task list |
| `Cmd+Shift+B` | Blockquote |
| `Cmd+Option+C` | Code block |
| `Tab` | Indent list item |
| `Shift+Tab` | Outdent list item |

## Moving blocks

Visual mode:

| Shortcut | Action |
|----------|--------|
| `Cmd+.` | Open the block menu for the block your cursor is in |
| `Cmd+Shift+↑` | Move the block up |
| `Cmd+Shift+↓` | Move the block down |

## Editing

Both modes:

| Shortcut | Action |
|----------|--------|
| `Cmd+S` | Save now |
| `Cmd+Z` | Undo |
| `Cmd+Shift+Z` | Redo |

Source mode also has:

| Shortcut | Action |
|----------|--------|
| `Cmd+F` | Search and replace in the page |
| `Tab` | Indent |

## AI

Visual mode:

| Shortcut | Action |
|----------|--------|
| `Cmd+J` | Ask AI about the text your cursor is in, or the selection |
| `Space` on an empty line | Ask AI to write |
| `Cmd+J` again | Open the assistant with what you typed |
| `Cmd+K` | Find a page, run a command, or ask AI (with text selected: add a link) |

In Ask AI:

| Shortcut | Action |
|----------|--------|
| `↑` `↓` | Choose a suggestion |
| `→` | Open a suggestion's choices, like the languages under Translate |
| `Enter` | Run it, or send what you typed |
| `Esc` | Close, or stop AI while it writes |

When a suggestion is ready:

| Shortcut | Action |
|----------|--------|
| `Cmd+Enter` | Accept it |
| `Esc` | Discard it |
| `Enter` | Send what you typed as a change to the suggestion, or accept it if you typed nothing |

In the command bar (`Cmd+K`), `Cmd+Enter` asks AI whatever you typed.

## Dashboard

| Shortcut | Action |
|----------|--------|
| `Cmd+K` | Search or jump to a project, the editor, members, settings, or billing (in the editor: pages, commands and AI) |
| `Cmd+\` | Hide or show the sidebar |

<Tabs>
  <Tab title="macOS">
    Use `Cmd` (⌘) as the modifier. For example:

    - `Cmd+B` for bold
    - `Cmd+S` to save
    - `Cmd+Option+1` for a heading
    - `Cmd+Shift+Z` to redo
  </Tab>
  <Tab title="Windows / Linux">
    Use `Ctrl` as the modifier. For example:

    - `Ctrl+B` for bold
    - `Ctrl+S` to save
    - `Ctrl+Alt+1` for a heading
    - `Ctrl+Shift+Z` to redo
  </Tab>
</Tabs>

## Slash menu

Type `/` and then part of a block's name. The menu filters as you type. Use `↑` and `↓` to move through it and `Enter` to insert.

| Type | Finds |
|------|-------|
| `/heading` | Heading 1, 2, and 3 |
| `/bullet` | Bullet list |
| `/numbered` | Numbered list |
| `/task` | Task list |
| `/code` | Code block and Code group |
| `/quote` | Blockquote |
| `/callout` | Callout |
| `/tabs` | Tabs |
| `/steps` | Steps |
| `/card` | Card and Card group |
| `/image` | Image upload |
| `/table` | Table |
| `/divider` | Divider |
| `/ai` | Ask AI, Continue writing, Draft with AI, Improve writing and Auto-structure |

See [Visual mode](https://docs.typemark.dev/editor/visual-mode) for the full list of blocks.
