Visual Studio 恢复
我的电脑随机关闭,我最终失去了我正在做的项目。我使用的是 Visual C# Express,但没有任何自动恢复或任何启动功能。C# Express 是否具有自动恢复功能,还是只有 Visual Studio 具有自动恢复功能?
My computer randomly shut down on me and I wound up losing the project I was working on. I am using Visual C# Express and no sort of auto recovery or anything kicked in. Does C# Express have an auto recovery, or is that only Visual Studio?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
C# Express(如果我没记错的话)具有与普通 VS 套件中完全相同的功能,但默认情况下它是禁用的。如果你去工具>选项>环境>自动恢复您可以将其打开。就像已经说过的那样,这只适用于活动文件,而且似乎是随意的。换句话说,请谨慎使用。
事后分析,最好的解决方案是增加保存频率。当我编写或编辑完方法、类、文件以及任何处于工作状态的东西时,我喜欢将其保存在本地。一旦准备好,我就会提交给源代码管理,但在本地我保存了太多。如果出现问题,我也不会损失很少的工作。
C# Express (if I remember right) has the feature exactly like it is in the normal VS suite, but it is by default disabled. if you go Tools > Options > Environment > AutoRecover you can turn it on. Like it was already said though, this only works on the active file and it seems to be haphazard. Use with caution in other words.
The best solution, post mortem, would be to increase the frequency of saving. When I finish writing or editing a method, class, file, anything that is in a working state, I like to save it locally. I submit to source control once it is ready for that, but locally I save far too much. I also lose very little work if something goes wrong.
在 VS 中你可以进入
Tools >菜单中的选项
然后到
环境>;自动恢复
设置自动恢复设置。请记住,自动恢复似乎只保存您当前正在处理的页面的信息。就像 Lambert 所说的“经常按下 Ctrl-Shift-S 组合”。
此外,自动恢复仅在您首次保存项目后才会启动
此外,每次运行应用程序时都应保存您的工作。
但真正的解决方案是阻止您的电脑随机关闭。
我建议您前往超级用户尝试修复您的电脑
In VS you Can go to
Tools > Options
in the menuThen to
Environment> AutoRecover
to set AutoRecover setting.Keep in mind that AutoRecover seems to only save the info for the page your are currently working on. So like Lambert said "press the Ctrl-Shift-S combination frequently".
Also AutoRecover only kicks in once you have first saved your project
Also your work should save each time you Run your app.
But the real solution here is to stop your pc from randomlly shutting down.
i suggest you head over to superuser to try and fix your pc
我使用 C# Express 和 VS 2010,如果您先保存解决方案,那么它似乎会自动恢复。所以尽快保存解决方案。
另外,如果您打算保留代码超过 10 分钟,请将其提交给某种源代码控制:subversion< /a>, cvs, git、darcs 等。
I use C# Express and VS 2010 and if you save your solution first, then it seems to auto-recover. So save the solution as soon as possible.
Also, if you're going to keep the code for more than 10 minutes then commit it to some sort of source control: subversion, cvs, git, darcs, etc.