> ## Documentation Index
> Fetch the complete documentation index at: https://www.voiceflow.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Keyboard shortcuts for the editor

> Every keyboard shortcut in the instructions editor, covering text formatting, duplicating and deleting blocks, menus, and moving around a document.

Shortcuts work anywhere the editor appears: the global prompt, agent instructions, and playbook instructions.

On Windows, use <kbd>Ctrl</kbd> anywhere <kbd>Cmd</kbd> is listed.

## Opening menus

| Shortcut | Action |
| - | - |
| <kbd>/</kbd> | Open the insert menu for blocks and [references](https://www.voiceflow.com/docs/documentation/build/editor/references.md) |
| <kbd>\{</kbd> | Insert a [variable](https://www.voiceflow.com/docs/documentation/build/data/variables.md) or secret |
| <kbd>Esc</kbd> | Close the open menu, then deselect |

Both menus only open at the start of a line or after a space.

## Formatting text

| Shortcut | Action |
| - | - |
| <kbd>Cmd + B</kbd> | Bold |
| <kbd>Cmd + I</kbd> | Italic |
| <kbd>Cmd + U</kbd> | Underline |

Strikethrough, highlight, and inline code have no shortcut. Use the formatting toolbar or a [markdown shortcut](https://www.voiceflow.com/docs/documentation/build/editor/markdown.md) instead.

## Working with blocks

| Shortcut | Action |
| - | - |
| <kbd>Cmd + A</kbd> | Select the current line, then press again to select everything |
| <kbd>Cmd + D</kbd> | Duplicate the selected lines |
| <kbd>Backspace</kbd> or <kbd>Delete</kbd> | Delete the selected lines |
| <kbd>Shift</kbd> + arrow keys | Extend the selection up or down |
| <kbd>Enter</kbd> | Put your cursor back at the end of a selected line |
| <kbd>Tab</kbd> | Indent the current line |
| <kbd>Shift + Tab</kbd> | Outdent the current line |
| <kbd>Shift + Enter</kbd> | Start a new line inside the same block |

## Editing

| Shortcut | Action |
| - | - |
| <kbd>Cmd + Z</kbd> | Undo |
| <kbd>Cmd + Shift + Z</kbd> | Redo |

Undo covers block moves and deletions as well as typing, so a drag that lands in the wrong place is one keystroke away from being fixed.

> [!TIP]
>
> <kbd>Esc</kbd> works through one layer at a time. The first press closes an open menu, and the next clears your selection.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.