Visual Studio Code: Auto-refresh file changes

前端 未结 3 1917
粉色の甜心
粉色の甜心 2020-12-12 17:07

Working with Visual Studio Code I have noticed if a file you are working with change, whenever that file get focused in a code panel it will be reloaded from the disk

相关标签:
3条回答
  • 2020-12-12 17:24
    {
        "files.useExperimentalFileWatcher" : true
    }
    

    in Code -> Preferences -> Settings

    Tested with Visual Studio Code Version 1.26.1 on mac and win

    0 讨论(0)
  • 2020-12-12 17:32

    SUPER-SHIFT-p > File: Revert File is the only way

    (where SUPER is Command on Mac and Ctrl on PC)

    0 讨论(0)
  • 2020-12-12 17:33

    VSCode will never refresh the file if you have changes in that file that are not saved to disk. However, if the file is open and does not have changes, it will replace with the changes on disk, that is true.

    There is currently no way to disable this behaviour.

    0 讨论(0)
提交回复
热议问题