Loading...

Recover a deleted file from IntelliJ IDEA

You might come accross a situation where you delete a file from any IDE. If you delete from explorer, it maybe in recycle bin and you would able to recover it from there. But when you delete from an IDE, it doesn't go to recycle bin. Today I came accross such a situation where some file I delted thinking it's not necessary, but which were my local database files and those are not in y codebase. So I started exploring and found the option to recover those files. It may help you, but anyhow I got an opportunity to share it here.

1. You need to righjt click on the project in IntelliJ

2.Select Local History -> Show history

3. Right click on the deleted item and click Revert.

Yay -- you are done!