i inadvertently deleted the code

Question:

Current behavior:

Desired behavior

Repl link:

code snippet

Do you mean you deleted the contents of one of the files? If yes, then you can use the keyboard shortcut Ctrl + Z or use the file history (the button in the lower right corner of the file editor).

If you deleted the file with the code, then you can create a file with the same name as the deleted one and use the history of this file.

5 Likes

Hey @henrijshugo!

Is your problem solved? If yes, you can mark the post above as a solution.

3 Likes

Replit has a history feature at the bottom of the screen where you can find earlier versions of your code. If you deleted a file, create a new one with the same name and access the history.

This is exactly what I wrote in my post.

3 Likes

oh i didn’t see that