If you deleted a file in VS Code, you can only recover it from your system’s Recycle Bin (Windows) or Trash (Mac). Unfortunately, if they’re been deleted from the recycle bin, there will be no easy way to recover them.
Follow these steps:
- Open Recycle Bin from your local computer.
- Find or navigate to the deleted file.
- Right-click on the file and click on the Restore option.
The deleted files will be automatically restored in the VS code.