I am having an issue with VSCode where it does not want to load changed file due to checking out a different branch. I do not care what VSCode thinks about the current file, I would like it to reload if a file changed on the disk or even better, it recognizes that the branch has changed and it reloads the file.
I can see that it may want to keep the file if the file has some unsaved changes, but that is not what I care. I would like it to reload it given that I am changing a branch on the file system.
I do not know what this feature might be called, but the only way I found was to revert the file, although I am not reverting it.
If you prefer a one-time manual action, you can use File -> Revert
(or CTRL+SHIFT+P revert file).
You can try the (experimental) file watcher. There must be some bugs maybe, but you can well do Code -> Preferences -> Settings -> File -> Check Experimental File watcher. Also, dont forget to ignore files where you don't need this to happen.(As Reactjs-node_modules, for example)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With