Ask coding questions

← Back to all posts
How to undo the auto-format?
AymanHayat (0)

I pressed on auto-format, unsure of what it changed, and it changed the formatting (surprise surprise). I want to change it back to how it was, and can't find how. How do you do it?

JBloves27 (1890)

You should press the save button, when like it's saving? Press that. Then select the file that you pressed auto-format, and click open up. Then you can press the revert button and then you should be back to normal! :D

Hope this helps!

candies (436)

CRTL + Z will undo...

AymanHayat (0)

@TempleOfCode I've already closed and reopened it, any other ideas?

Highwayman (1483)

maybe try reverting to an earlier save...?

AymanHayat (0)

@Highwayman I didn't already do the whole git repository thing, does that mean I don't have any previous versions saved?

Highwayman (1483)

no, you still get previous versions saved, just not in some git repo. has it's own version history. you know that thing near the top left of your screen when you are in your repl? it looks like an arrow with a circle around it. if you click on it you'll get your version history. @AymanHayat