从Visual Studio文档缓存中恢复文件? [英] Recovering file from the Visual Studio document cache?

查看:614
本文介绍了从Visual Studio文档缓存中恢复文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚失去了一些代码.我需要将几个方法从一个类移到另一个类,所以我点击保存,剪切了这些方法,VS崩溃了.现在看来,保存是在剪切之后发生的,因为没有使用这些方法保存了代码,但是代码不在我的剪贴板上.所以我没有代码,也没有简单的方法来找回它!

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!

我知道Visual Studio会保留一个文档缓存,当显示恢复文件"对话框时,它将使用它,但是在VS启动备份时未显示它.我希望我的课程有一个版本,其中的代码仍然在那里,所以我不必再次开始,但我不知道在哪里查找.

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.

有人可以告诉我VS将这些文件保存在磁盘上的什么位置吗?

Can anybody tell me where VS keeps these files on disk?

真的很感谢您可以提供的任何帮助.

Really appreciate ANY help you can offer.

推荐答案

Visual Studio 2019.4.1在%localappdata%\Microsoft\VisualStudio\BackupFiles中保存了我的备份文件-MyDocuments树中的文件夹为空.

Visual Studio 2019.4.1 had my backup files in %localappdata%\Microsoft\VisualStudio\BackupFiles - the folders in the MyDocuments tree were empty.

这篇关于从Visual Studio文档缓存中恢复文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆