> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Snippets and variables

Write content once and use it in many documents: insert a snippet with the / menu, or a variable by typing {{name}}, and update every copy in one place.

Snippets and variables keep content in one place and use it in many documents. Change the snippet or the variable once, and every document that uses it shows the new version the next time it is published.

- A **snippet** is a block of content, such as a warning about a billing change or the steps to sign in.
- A **variable** is a short value, such as a product name or a price, filled in each time it is used.

## Create a snippet

1. In the project's sidebar, click **Snippets**.
2. Click **New snippet**, give it a name and a **Description**, and write the **Snippet content**.
3. Click **Create snippet**.

## Insert a snippet

In any document in the project, type `/` and choose the snippet from the menu.

## Create and use a variable

1. On the **Snippets** page, under **Variables**, add a name and its value.
2. In a document, type the name in double braces, like `{{product_name}}`. It becomes a chip that shows the value.

## See where it is used

Each snippet and variable lists the documents that use it, or **Not used yet**. Check the list before you change one, since the change reaches every document on it.

## Related

- [Editor basics](https://workover.io/docs/editor/basics)
- [Keyboard shortcuts and slash commands](https://workover.io/docs/editor/keyboard-shortcuts)
