- Home /
Is there any way to restore previous save of C# script
So I am using visual studio to write code for my unity project. I mistakenly clicked the undo pending changes option on one of my classes and it deleted all the work I did for that class over the past day. However I am always pressing ctrl+s in visual studio out of habit so is there anyway to restore previous saves? Like, anywhere on my computer would there be some temp file with my code written in it so I can just copy and paste it back. I had downloaded .NET reflector and opened the dll file from the Assembly-CSharp file from my project but for some reason that file does not show the save history either even though I did not rebuild the project in visual studio. Also I do use revision control but had not yet pushed the work I did today to the master file on GitHub. Any help is very appreciated.
After looking at Stackoverflow, the answer is no. Next time press staged file inside VS then.