> For the complete documentation index, see [llms.txt](https://studio-docs.sandbox.game/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://studio-docs.sandbox.game/the-editor/how-to-undo-and-redo.md). Agents can also search and read this documentation through its [MCP server](https://studio-docs.sandbox.game/~gitbook/mcp).

# How to Undo and Redo

Video Link:[How to Undo and Redo.mp4](https://drive.google.com/file/d/1aCdYgtMgadWrsf9wK-Xka3j9LqA62MeQ/view?usp=drive%5Flink)

A simple guide to reversing and restoring editor changes. Make a visible change, undo it with `Ctrl+Z` / `Cmd+Z`, and restore it with `Ctrl+Y` / `Cmd+Shift+Z`.

Undo and redo are useful when testing positions, values, or other editor changes. Start with a change that is easy to recognise. If you prefer not to use shortcuts, use the Undo and Redo arrows next to the Save button in the top-left of the editor.

### **Step 1: Make a change**

Select an asset and move it to a different position. You can also change a setting, provided the result is easy to see.

### **Step 2: Undo the change**

Press `Ctrl+Z` / `Cmd+Z`, or select the Undo arrow next to Save. The most recent editor action is reversed and the asset or setting returns to its previous state.

### **Step 3: Redo the change**

Press `Ctrl+Y` / `Cmd+Shift+Z`, or select the Redo arrow next to Save. The action you just undid is restored.

| **TIP** Repeat the shortcut to move through more than one recent action when the editor history allows it. |
| ---------------------------------------------------------------------------------------------------------- |

Undo is helpful when an adjustment does not produce the result you expected. Redo lets you compare the restored change without recreating it manually.

## **What You've Done**

You can now reverse a recent editor action with `Ctrl+Z` / `Cmd+Z` or the Undo arrow, and restore it with `Ctrl+Y` / `Cmd+Shift+Z` or the Redo arrow.


---

# 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://studio-docs.sandbox.game/the-editor/how-to-undo-and-redo.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.
