Sublime Forum

History of change, file recovery

#1

I wrote the code in Sublime, then changed it and saved it by accident. I realized after a few days, because the results that the code spits out are wrong. Is there any chance to get to that version of the code? Sublime saves it somehow or is it gone?

0 Likes

#2

Unless you install some third party package, Sublime only saves files when you tell it to, and it saves files to the name that you give it.

So, unless you’re using source control for your code, any prior versions of your file are now lost

If you happen to be using ST4 and you have not closed the file (i.e. you quit and restarted Sublime, but the tab for that file has remained open), you can undo back to the state the file was in originally. Apart from that, you’re out of luck.

0 Likes