Visual Studio Code Backup Engine

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 ++ has a backup folder that periodically saves copies of your files. Nothing is lost in the last 7 seconds, even if the power goes out.
  • Atom saves IndexedDB, which should restore everything after an exception. I have no idea what happens when a power outage occurs.
  • Inkscape uses exception handling to recover data. If the power goes out, data is lost.
  • Scite has no backup plan.
+6
source share
1 answer

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

The way to work with hot output is to periodically back up unsaved files. If the VS code fails, the backup will be restored the next time the folder is opened.

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

As for the period between backups, I did not find anything.

+4
source

Source: https://habr.com/ru/post/1015539/


All Articles