How do you redo code that you accidentally got rid of? help

Question:
i accidentally deleted code on one of my big projects. is there an undo button?
Repl link:

code snippet

Hello @goldenlemon
Welcome to the Community

Just go to History under right hand column there is a icon or button name History just click that icon and see the code you have accidentally deleted or get rid of it and then click Restore

There you go, problem is solved

3 Likes

You can go with the previous suggestion, though if you deleted code BUT did not exit the tab/app, you can just do ctrl+z or on mobile, click the lightning icon and there is an undo icon.

1 Like