backup - Visual Studio Code 备份机制

标签 backup visual-studio-code

Visual Studio Code 如何在崩溃后恢复数据? “崩溃”包括突然断电和处理异常。作为我的意思的例子,

  • Notepad++ 有一个备份文件夹,它会定期保存您的文件副本。即使断电,也不会在最后 7 秒后丢失任何内容。
  • Atom 保留一个 IndexedDB,它应该在发生异常后恢复所有内容。我不知道停电会发生什么。
  • Inkscape 依靠其异常处理来恢复数据。如果断电,数据就会丢失。
  • Scite 没有备用计划。
  • 最佳答案

    根据 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.



    在 Windows 上,备份文件夹是 AppData\Roaming\Code\Backups。

    至于备份之间的时间段,我没有发现任何东西。

    关于backup - Visual Studio Code 备份机制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42635755/

    相关文章:

    visual-studio-code - Visual Studio 代码 1.3 中 openui 项目的智能感知

    linux - Bash 输出仅限于回显

    java - 如何为应用程序创建简单的本地备份和恢复?

    linux - rsync 备份动态文件夹中生成的一个文件

    mysql - 使用 mysql 触发器在更新事件后备份行

    visual-studio-code - VSCode 将没有扩展名的文件关联到 xml

    emacs - 如何删除 Emacs 在关闭时创建的以 '#' 开头和结尾的临时文件?

    ssh - VSCode v1.43远程ssh无法连接。 v1.42的作品

    batch-file - 在 vscode 中为 .bat 文件中的 'start' 命令打开一个新终端

    python - 如何在 Visual Studio Code 的 launch.json 中调试 Python 模块