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

# Version History Panel

> View, compare, and restore previous versions of your document — with automatic and manual snapshots.

The Version History panel (<Icon icon="history" size={16} />) tracks every change to your document. Autype automatically creates snapshots in the background, and you can create named versions manually at any time.

<Frame>
  <img src="https://mintcdn.com/centerbit/TtPv7-oz376rL_ZT/images/application/sidebar-history/sidebar-history-full.png?fit=max&auto=format&n=TtPv7-oz376rL_ZT&q=85&s=518e887d5968f16ddded558c401a6544" alt="Version History panel showing auto-saved versions" width="1518" height="1275" data-path="images/application/sidebar-history/sidebar-history-full.png" />
</Frame>

***

## Automatic snapshots

Autype creates **automatic snapshots** at regular intervals as you work. You don't need to do anything — they are created silently in the background whenever your document is saved.

The last **50 snapshots** are retained per document. Older snapshots are automatically removed to keep the list manageable. Automatic snapshots are grouped under the **"Auto-saved"** section and labeled with a timestamp, the author, and a version number.

***

## Manual (named) versions

In addition to automatic snapshots, you can create **named versions** at any point — for example, before a major rewrite, after completing a section, or before sending a document to a client.

Click the **"+ Create Version"** button at the top of the panel to open the dialog:

<Frame>
  <img src="https://mintcdn.com/centerbit/TtPv7-oz376rL_ZT/images/application/sidebar-history/create-version-modal.png?fit=max&auto=format&n=TtPv7-oz376rL_ZT&q=85&s=eb0d184aa2e5819c2c33dfcfdc3b1878" alt="Create Version dialog with a version name input" width="865" height="383" data-path="images/application/sidebar-history/create-version-modal.png" />
</Frame>

Enter a descriptive name (e.g., *"Before refactor"*, *"Version 2.1"*, *"Final draft"*) and click **Create**. The named version appears in its own **"Named Versions"** section above the auto-saved snapshots.

<Tip>
  Named versions are never automatically deleted. Use them to mark important milestones you may want to return to later.
</Tip>

***

## Version actions

Each version entry shows the **version name or message**, **author avatar and name**, and **relative timestamp**. When you hover over a version, three action buttons appear:

| Button                               | Action        | Description                                                                  |
| ------------------------------------ | ------------- | ---------------------------------------------------------------------------- |
| <Icon icon="eye" size={16} />        | **View diff** | Opens a side-by-side comparison of this version against the current document |
| <Icon icon="rotate-ccw" size={16} /> | **Restore**   | Restores the document to this version (with confirmation)                    |
| <Icon icon="trash-2" size={16} />    | **Delete**    | Permanently deletes this version (with confirmation)                         |

***

## Diff view

Clicking the <Icon icon="eye" size={16} /> button opens a full-screen **side-by-side diff view** powered by Monaco Editor.

<Frame>
  <img src="https://mintcdn.com/centerbit/TtPv7-oz376rL_ZT/images/application/sidebar-history/diff-view-version-vs-current.png?fit=max&auto=format&n=TtPv7-oz376rL_ZT&q=85&s=a5e2c2c943e91916b49ee1a4498e2136" alt="Diff view comparing a previous version (left) with the current document (right)" width="2088" height="1264" data-path="images/application/sidebar-history/diff-view-version-vs-current.png" />
</Frame>

* **Left side** — the selected version (the older state)
* **Right side** — the current document (the latest state)

Changes are highlighted inline: **red** for removed content, **green** for added content. You can scroll through the entire document to review all differences.

### Markdown / JSON toggle

In the top-right corner of the diff dialog, a toggle lets you switch between **Markdown** and **JSON** view:

| Mode         | Shows                                                                                            |
| ------------ | ------------------------------------------------------------------------------------------------ |
| **Markdown** | The human-readable Markdown content — best for reviewing text changes                            |
| **JSON**     | The raw document schema — useful for inspecting structural changes (variables, styles, metadata) |

From the diff view, you can also click **"Restore this version"** to restore directly without closing the dialog first.

***

## Restoring a version

When you restore a version (either from the hover action or from the diff view), Autype:

1. **Creates a new snapshot** of the current document state — so you can always undo the restore
2. **Replaces the document content** with the selected version's content

A confirmation dialog is shown before the restore is applied.

<Warning>
  Restoring a version is **not available during live collaboration sessions** with other active users to prevent conflicting document states. If other users are currently editing, you'll see an error message.
</Warning>
