I've just lost some code. I needed to move a couple of methods from one class to another so i hit save, cut the methods and VS crashed. Now it seems that the save happened after the cut since the code has been saved without those methods but the code isn't on my clipboard. So I'm left without the code and no easy way to get it back!
I know that Visual Studio keeps a document cache which it uses when the recover files dialog is shown but it wasn't shown when VS started back up. I'm hoping that there is a version of my class with the code still in there so i don't have to start again but i don't know where to look.
Can anybody tell me where VS keeps these files on disk?
Really appreciate ANY help you can offer.
You can also specify if you want to restore modified files if Visual Studio shuts down unexpectedly. To access this dialog box, go to Tools > Options > Environment > AutoRecover.
Show extension side bar within VS Code(Mac: Command + Shift + X , Windows and Linux: Ctrl + Shift + X ), type unsaved-files-vscode and press Enter and click Install . Restart VS Code when installation is completed.
To recover a deleted file or project: In Visual SourceSafe Explorer, on the File menu, click Properties. Click the Deleted Items tab. Select the file(s) or project that you want to recover. Click Recover.
You can find recycle bin from project level: Boards - Work items and Artifacts using New Navigation(Account - Preview Features - New Navigation - on), See screenshot below.
Sorted it. Those recovery files are located @ MyDocuments\Visual Studio X\Backup Files\Project Name...
Visual Studio 2019.4.1 had my backup files in %localappdata%\Microsoft\VisualStudio\BackupFiles
- the folders in the MyDocuments tree were empty.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With