Visual Studio Code备份机制 [英] Visual Studio Code backup mechanics

查看:335
本文介绍了Visual Studio Code备份机制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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,

  1. Notepad ++具有一个备份文件夹,该文件夹定期保存文件的副本.即使电源关闭,在过去的7秒内也不会丢失任何东西.
  2. Atom保留一个IndexedDB,该数据库应在发生异常后恢复所有内容.我不知道停电会发生什么.
  3. Inkscape依靠其异常处理来恢复数据.如果断电,则数据将丢失.
  4. 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屋!

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