Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code keeps compiling even if I do not save changes

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: enter image description here

like image 263
krypru Avatar asked Sep 25 '18 12:09

krypru


People also ask

How do I stop Visual Studio from compiling automatically?

Just change it to "files. autoSave": "off", (which is the default). So your compilation should now only be triggered when you save..

How do I stop Vscode compiling?

VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program.

How do you stop infinite code in VS code?

You can stop any running command by pressing Ctrl + C on your keyboard.

Does Vscode auto save?

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.


1 Answers

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

like image 166
Parth Developer Avatar answered Sep 21 '22 11:09

Parth Developer