Visual Studio Code备份机制 [英] Visual Studio Code backup mechanics
问题描述
Visual Studio Code如何在崩溃后恢复数据? 崩溃"包括突然的断电和已处理的异常.作为我的意思的例子,
How does Visual Studio Code recover data after a crash? "Crash" includes both sudden power outages and handled exceptions. As examples of what I mean,
- Notepad ++具有一个备份文件夹,该文件夹定期保存文件的副本.即使电源关闭,在过去的7秒内也不会丢失任何东西.
- Atom保留一个IndexedDB,该数据库应在发生异常后恢复所有内容.我不知道停电会发生什么.
- Inkscape依靠其异常处理来恢复数据.如果断电,则数据将丢失.
- Scite没有备份计划.
推荐答案
根据 https://code.visualstudio.com/blogs/2016/11/30/hot-exit-in-insiders ,
热出口的工作方式是定期备份未保存的文件.如果VS Code崩溃,则下次打开该文件夹时将进行备份还原.
The way hot exit works is to periodically make backups of unsaved files. If VS Code happens to crash, a backup restore will occur the next time the folder is opened.
在Windows上,备份文件夹为AppData \ Roaming \ Code \ Backups.
On Windows, the backup folder is AppData\Roaming\Code\Backups.
至于两次备份之间的时间,我什么都没找到.
As for the period between backups, I haven't found anything.
这篇关于Visual Studio Code备份机制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!