Visual Studio Code backup mechanics

穿精又带淫゛_ 提交于 2019-12-01 00:01:04

问题


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++ has a backup folder which periodically saves copies of your files. Nothing is lost beyond the last 7 seconds even if the power goes out.
  2. Atom keeps an IndexedDB which should recover everything after an exception. I have no idea what happens on power outage.
  3. Inkscape relies on its exception handling to recover data. If the power goes out, the data is lost.
  4. Scite has no backup plan.

回答1:


According to https://code.visualstudio.com/blogs/2016/11/30/hot-exit-in-insiders,

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.

On Windows, the backup folder is AppData\Roaming\Code\Backups.

As for the period between backups, I haven't found anything.



来源:https://stackoverflow.com/questions/42635755/visual-studio-code-backup-mechanics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!