HELP! I just deleted my code by mistake, I need it back!


Hi, so I just mistakenly deleted some code that I wrote. I need to recover it!! PLEASE HELP!!!
It is for a client, please help!!!


Have you tried going Edit => Undo? If you have been using git, you could rollback to the last commit.


File History is your best friend. You can right click in the window where the code was, select file history from the dropdown, then use the arrows in the top right of the window to go to what version of the file you want. Once you reach it, click the Revert button, next to the arrows. After that, save your file.