Hacker News new | ask | show | jobs
by slipwalker 2258 days ago
try this: onde you have the entire code ready, working properly, go to the end of the file and "backspace" your entire file clean. Now, from the top of the empty file, repeat "Ctrl-Z" until you have your code restored.

of course, it will not work with too large files... you will be limited to the number of undos of your editor.

( i used to do this on "live coding" sessions )