> 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).

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://studio-docs.sandbox.game/the-editor/how-to-undo-and-redo.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
