As the topic says. VSC starts compilation even if there is no any single file change and it goes into loop compilation. I have Angular(6) project. I use following command:
ng serve
Another time when I search some file and go to it Visual Studio Code starts compilation again (there is no any changes). It drives me crazy when web browser referesh agian and againt. How to prevent this problem?
I use powershell. Here, you can see the output of compilation which I didn't triggered:
Just change it to "files. autoSave": "off", (which is the default). So your compilation should now only be triggered when you save..
VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program.
You can stop any running command by pressing Ctrl + C on your keyboard.
By default, VS Code requires an explicit action to save your changes to disk, Ctrl+S. However, it's easy to turn on Auto Save , which will save your changes after a configured delay or when focus leaves the editor. With this option turned on, there is no need to explicitly save the file.
Finally, I got the Solution and it is working Full Proof. One confession here, I don't know how it works but it works...
ng serve --poll 1100
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