How to survive SSMS Crash

So I was just about to finish the greatest piece of tSql code ever conceived (/*with multiline comments*/) when SSMS crashed suddenly/box was restarted/rebooted/lost power/suffered rapid unscheduled disassembly etc. When I opened Management Studio for the first time after the crash there was only single script recovered that was anything but my Magnum Opus. Of course I can’t go back in time and retrieve it from my memory because that clearly was one off and now planets are not aligned.