1

my VSC crash without saving how to get back the code ? already tested appdata\roaming\code\backup i dont found the file

Aknoks
  • 21
  • 1
  • 1
  • 3

2 Answers2

4

You can recover you projects from the VSCode cache. In Linux it is located under /home/USER/.config/Code/User/History/ and under Windows it is /Users/USER/AppData/Roaming/Code/User/History/. Each file has a directory and in each directory there are different versions of the same file.

Trigus
  • 71
  • 3
0

If you don't have backups, look in the Recycle Bin for possibly finding a deleted version of the file.

You could also set Windows Explorer to show hidden files and look in the folder where the file was last located. You may find there a version of it with a mangled name.

Look also in the temporary files folder (if in doubt run in the Command Prompt the command set TEMP).

harrymc
  • 455,459
  • 31
  • 526
  • 924