Skip to content
← Back to Community
How to undo the auto-format?
Profile icon
AymanHayat

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?

Voters
Profile icon
WinstonWoo
Profile icon
pecoranera
Profile icon
AymanHayat
Comments
hotnewtop
Profile icon
JBloves27

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!

Profile icon
AymanHayat
Profile icon
JBloves27
Profile icon
candies

CRTL + Z will undo...

Profile icon
AymanHayat

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

Profile icon
Highwayman

maybe try reverting to an earlier save...?

Profile icon
AymanHayat

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

Profile icon
Highwayman

no, you still get previous versions saved, just not in some git repo. Real.it 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