Quickly restores numerous lost or deleted files in vscode by recreating the right file path, name, and restoring it through vscodes's local history.
Have you accidentally permanently deleted some important programming files? If you were using vscode, local history is here to save you.
You can find it at the bottom left in the timeline.
You can also find it by pressing CTRL+SHIFT+P and then typing Explorer: Focus on Timeline View

It stores a a bunch of the last saves for each file you ever had. You can right-click on point and restore it.
If you deleted a file you will have to put the file back with the right path and name in order to restore it. If you deleted hundreds of files this can be very tedious. Bulk-Vscode-Restore can recreate the right file path, name, and restore the latest save for hundreds of files instantly.
- Copy the code from
restore.pyor clone the repository usinggit clone https://github.com/PythonDominator/Bulk-Vscode-Restore - Naviagate the parent folder of where you put
restore.pyin - Find where local history is stored (For Windows it is usually
C:\Users\[YOUR_USERNAME_HERE]\AppData\Roaming\Code\User\History) - Run:
python restore.py [restore_from] [history] [restore_to]
usage: restore.py [-h] [--no-entries] [--no-date] restore_from history restore_to
Easily bulk restore files in vscode.
positional arguments:
restore_from The folder that gets restored.
history The vscode folder where local history is stored. Changes depending on OS but
for windows usually C:\Users\{USER_NAME}\AppData\Roaming\Code\User\History
restore_to Where folder gets restored.
options:
-h, --help show this help message and exit
--no-entries Doesn't show the amount of entries in files.
--no-date Doesn't show the date of the last save.
python restore.py C:\Users\Joe\Downloads\Programming\MyLostProject C:\Users\Joe\AppData\Roaming\Code\User\History C:\Users\Joe\OneDrive\Documents\RestoredProject
Please let me know if you have any questions or if I helped you restore any files.

