# Playground Undo/Redo Function

**URL:** <https://forum.babylonjs.com/t/playground-undo-redo-function/13079>\
**Category:** Questions\
**Created:** [August 3, 2020, 8:15am UTC](https://forum.babylonjs.com/t/playground-undo-redo-function/13079 "2020-08-03T08:15:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhuang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jhuang/32/21156_2.png) [@jhuang](https://forum.babylonjs.com/u/jhuang)\
**Post date:** [August 3, 2020, 8:15am UTC](https://forum.babylonjs.com/t/playground-undo-redo-function/13079/1 "2020-08-03T08:15:19Z")

</div>

For playground, it is recommended to provide a function/button on the interface to “undo” and “redo” code changes prior to file saving. It is useful for user to reverse some changes when needed.

Thanks!

---

<div class="post-metadata">

**Author:** ![gbz](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gbz/32/23780_2.png) [@gbz](https://forum.babylonjs.com/u/gbz)\
**Post date:** [August 3, 2020, 8:23am UTC](https://forum.babylonjs.com/t/playground-undo-redo-function/13079/2 "2020-08-03T08:23:04Z")

</div>

If on Windows, would Ctrl + Z to undo and Ctrl + Shift + Z to redo work well for you?

---

<div class="post-metadata">

**Author:** ![jhuang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jhuang/32/21156_2.png) [@jhuang](https://forum.babylonjs.com/u/jhuang)\
**Post date:** [August 3, 2020, 12:40pm UTC](https://forum.babylonjs.com/t/playground-undo-redo-function/13079/3 "2020-08-03T12:40:11Z")

</div>

Hi, @gbz. It works perfectly. Thanks for the quick response.
