Skip to content

Intellij IDEA: How to recover accidentally deleted files

Last Updated on 2021-03-10 by Clay


Introduction

I wrote a note about the steps of how to recovering accidentally deleted files in PyCharm IDE. Intellij IDEA that also developed by Jetbrains, can do the same.

Recently, I accidentally deleted the files when developing an App using Flutter, thank god, I use the following steps to save my files.

And then, we start to introduce the steps of saving files.


Recover your file

Suppose you have a project like the following directory:

Now I delete the test.dart file.

Then right-click on the lib folder and select Local History => Show History.

You can see this screen, where we right-click on the file to be restored (that is "test.dart") and select Revert Selection.

Then the files deleted by mistake can be restored.


I think the IDE developed by Jetbrains may have similar function, so if you delete the important files, don't worry, maybe you can find some ways to restore your files.

7 thoughts on “Intellij IDEA: How to recover accidentally deleted files”

Leave a Reply