Refresh Visual Studio Code list of files

后端 未结 11 1752
一生所求
一生所求 2021-01-31 07:11

Visual Studio Code (Version 0.10.11, on OSX) does not refresh the files in a folder. Is there any way to force it to refresh. Currently I have to close and reopen the whole pr

相关标签:
11条回答
  • 2021-01-31 07:24

    "Ctrl + Alt + R" on v 1.27.1 as of 9/11/18

    0 讨论(0)
  • 2021-01-31 07:28

    To reload a single file:

    • ⇧⌘P
    • type "Revert File"

    On Windows:

    • Ctrl + Shift + P
    • type "Revert File"

    Tested in VSCode v1.18.1 on Windows

    0 讨论(0)
  • 2021-01-31 07:30

    Right-Click your sln (Will say 0/n solutions) In the bottom row of dialog it will say reload project solutions. If it's not present, then it was just reloaded most likely. Try to run build again.

    0 讨论(0)
  • 2021-01-31 07:37

    EDIT: In the meanwhile a reload button has been added to the file explorer widget.

    Use the workbench.action.reloadWindow command. Go to File -> Preferences -> Keyboard Shotcuts and define a shortcut for this command. On my system it's placed on Ctrl+F5. The entry in keybindings.json looks like this:

    {
      "key": "ctrl+f5",
      "command": "workbench.action.reloadWindow",
      "when": "editorTextFocus"
    }
    
    0 讨论(0)
  • 2021-01-31 07:39

    Ran across this today with VS Code 1.13.0 and in Keyboard Shortcuts I see

    workbench.files.action.refreshFilesExplorer
    
    0 讨论(0)
提交回复
热议问题