How to refresh content of opened files in VS Code?

Viewed 10025

I'm looking for a way to refresh the content of a file opened in editor after it was changed by other tool.

For instance I'm using angular command line which makes changes to files but VS Code doesn't refresh the content after that and I can't see any of that. What's worse when I try to save the file, VS Code by default tries to save the old content upon the newer (asks before of course, but still its not what I'm looking for).

I didn't find any keybindings for refresh the editor's content. Maybe there are any extensions?

Thank you.

1 Answers

It should reload itself automatically, but I had a machine that stopped auto-refreshing. I'd change the file externally (with vim or whatever), and the file I had in the editor wouldn't pop and refresh itself, which it used to do. It turned out to be a git-related extension. I disabled it, and autorefresh returned. If you haven't already, try it with extensions off.

Related