> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/reference/keyboard-shortcuts.md).

# Keyboard shortcuts

A quick reference guide to all the keyboard shortcuts available in GitBook

Shortcut keys allow easy and quick methods for navigating or editing content.

## In published documentation

<table><thead><tr><th width="270.3294270833333">Description</th><th>Mac</th><th>Windows</th></tr></thead><tbody><tr><td>Open the <strong>Ask or search</strong> panel</td><td><kbd>⌘</kbd>+<kbd>K</kbd></td><td><kbd>Ctrl</kbd>+<kbd>K</kbd></td></tr><tr><td>Open the <strong>GitBook Assistant</strong> chat window</td><td><kbd>⌘</kbd>+<kbd>I</kbd></td><td><kbd>Ctrl</kbd>+<kbd>I</kbd></td></tr><tr><td>Close the <strong>Ask or search</strong> or <strong>GitBook Assistant</strong> panels</td><td><kbd>Esc</kbd></td><td><kbd>Esc</kbd></td></tr></tbody></table>

## In the GitBook app <a href="#editing" id="editing"></a>

<table><thead><tr><th width="270.1458333333333">Description</th><th>Mac</th><th>Windows</th></tr></thead><tbody><tr><td>Copy</td><td><kbd>⌘</kbd>+<kbd>C</kbd></td><td><kbd>Ctrl</kbd>+<kbd>C</kbd></td></tr><tr><td>Paste</td><td><kbd>⌘</kbd>+<kbd>V</kbd></td><td><kbd>Ctrl</kbd>+<kbd>V</kbd></td></tr><tr><td>Paste as text, without formatting</td><td><kbd>⌘</kbd>+<kbd>Shift</kbd>+<kbd>V</kbd></td><td><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>V</kbd></td></tr><tr><td>Undo</td><td><kbd>⌘</kbd>+<kbd>Z</kbd></td><td><kbd>Ctrl</kbd>+<kbd>Z</kbd></td></tr><tr><td>Redo</td><td><kbd>⌘</kbd>+<kbd>Shift</kbd>+<kbd>Z</kbd></td><td><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Z</kbd></td></tr><tr><td>Duplicate selected block(s)</td><td><kbd>⌘</kbd> + <kbd>D</kbd></td><td><kbd>Ctrl</kbd> + <kbd>D</kbd></td></tr><tr><td>Exit from content block (code, tabs, table, quote ...)</td><td><kbd>⌘</kbd>+<kbd>Enter</kbd></td><td><kbd>Ctrl</kbd>+<kbd>Enter</kbd></td></tr><tr><td>Open block-insert palette.</td><td><kbd>/</kbd></td><td><kbd>/</kbd></td></tr><tr><td>Open block-modifier palette.</td><td><kbd>⌘</kbd>+<kbd>/</kbd></td><td><kbd>Ctrl</kbd>+<kbd>/</kbd></td></tr><tr><td>Toggle bold</td><td><kbd>⌘</kbd>+<kbd>B</kbd></td><td><kbd>Ctrl</kbd>+<kbd>B</kbd></td></tr><tr><td>Toggle italic</td><td><kbd>⌘</kbd>+<kbd>I</kbd></td><td><kbd>Ctrl</kbd>+<kbd>I</kbd></td></tr><tr><td>Toggle strikethrough</td><td><kbd>⌘</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd></td><td><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd></td></tr><tr><td>Toggle inline code</td><td><kbd>⌘</kbd>+<kbd>E</kbd></td><td><kbd>Ctrl</kbd>+<kbd>E</kbd></td></tr><tr><td>Insert or toggle link</td><td><kbd>⌘</kbd>+<kbd>K</kbd> (in the editor)</td><td><kbd>Ctrl</kbd>+<kbd>K</kbd> (in the editor)</td></tr><tr><td>Select the entire block</td><td><kbd>Esc</kbd></td><td><kbd>Esc</kbd></td></tr><tr><td>Close a dialog or the search panel</td><td><kbd>Esc</kbd> (navigation)</td><td><kbd>Esc</kbd> (navigation)</td></tr><tr><td>Open the Ask or search panel</td><td><kbd>⌘</kbd>+<kbd>K</kbd> (outside the editor)</td><td><kbd>Ctrl</kbd>+<kbd>K</kbd> (outside the editor)</td></tr></tbody></table>

### Block-specific shortcuts

#### Paragraph & heading blocks

<table><thead><tr><th width="269.7669270833333">Description</th><th>Mac</th><th>Windows</th></tr></thead><tbody><tr><td>Insert a soft line break in a paragraph</td><td><kbd>Shift</kbd> + <kbd>Enter</kbd></td><td><kbd>Shift</kbd> + <kbd>Enter</kbd></td></tr><tr><td>Turn into a paragraph</td><td><kbd>⌘</kbd> + <kbd>⌥</kbd> + <kbd>0</kbd></td><td><kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>0</kbd></td></tr><tr><td>Turn into a heading 1</td><td><kbd>⌘</kbd> + <kbd>⌥</kbd> + <kbd>1</kbd></td><td><kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>1</kbd></td></tr><tr><td>Turn into a heading 2</td><td><kbd>⌘</kbd> + <kbd>⌥</kbd> + <kbd>2</kbd></td><td><kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>2</kbd></td></tr><tr><td>Turn into a heading 3</td><td><kbd>⌘</kbd> + <kbd>⌥</kbd> + <kbd>3</kbd></td><td><kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>3</kbd></td></tr></tbody></table>

#### Table blocks

<table><thead><tr><th width="269.7669270833333">Description</th><th>Mac</th><th>Windows</th></tr></thead><tbody><tr><td>Insert a row below</td><td><kbd>⌥</kbd> + <kbd>Shift</kbd> + <kbd>Enter</kbd></td><td><kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>Enter</kbd></td></tr><tr><td>Insert a row above</td><td><kbd>⌥</kbd> + <kbd>Enter</kbd></td><td><kbd>Alt</kbd> + <kbd>Enter</kbd></td></tr><tr><td>Move to next row</td><td><kbd>Enter</kbd></td><td><kbd>Enter</kbd></td></tr><tr><td>Insert a new line in a text cell</td><td><kbd>Shift</kbd> + <kbd>Enter</kbd></td><td><kbd>Shift</kbd> + <kbd>Enter</kbd></td></tr><tr><td>Delete row</td><td><kbd>⌘</kbd> + <kbd>-</kbd></td><td><kbd>Ctrl</kbd> + <kbd>-</kbd></td></tr></tbody></table>

#### List & Code blocks

<table><thead><tr><th width="269.7669270833333">Description</th><th>Mac</th><th>Windows</th></tr></thead><tbody><tr><td>Increase indentation level</td><td><kbd>Tab</kbd></td><td><kbd>Tab</kbd></td></tr><tr><td>Decrease indentation level</td><td><kbd>Shift</kbd> + <kbd>Tab</kbd></td><td><kbd>Shift</kbd> + <kbd>Tab</kbd></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/reference/keyboard-shortcuts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
