Issue
I was working with PyCharm IDE and my laptop suddenly shutdown because my battery died. When I rebooted my laptop I found that my two python files are empty. How I can recover their content?
Solution
There's a thing called Local History
. So while you have opened desired file, select Local History
(top menu -> VCS -> Local History) and it will show you all changes made in given file.
If you want to restore a deleted file, then select a parent directory of the deleted file. Again go to Local History
and do the same.
Answered By - yedpodtrzitko