VSCode restart server on file modification


(Santosh Kumar) #1

I’m sorry if this has been asked before. I’m writing a website in which I have to edit and check HTML/CSS on a frequent interval. I find it very anti-productive to hit Ctrl+backtick. Kill the server. Then run it back, check the website how it looks, make changes, repeat.

It would be really beneficial if this process was automated.

Your suggestion could be related to go libraries/tool or something related to the VS Code.


(Boban Acimovic) #2

If you need autorecompile, you may use this:

However, it may not react on template files’ changes so you may need to modify it a little bit to react on some other file extensions’ changes. If you need some features and do not want to modify this, feel free to open an issue or PR.