Search code examples
angularintellij-ideaangular-cliserve

IntelliJ IDEA + Angular ng-serve recompile on every change


I am developing an Angular application using IntelliJ IDEA. I run ng server in the terminal window. angular cli automatically recompile whenever I change any code, and causes the browser constantly reloading. I would like angular cli to recompile only when I click "build project" icon or press Ctrl+S. I have spent hours looking at both IntelliJ and angular cli, but could not find anything on how to make it happen. Please help if you know how


Solution

  • Finally find the settings in IntelliJ.

    Go to [Settings ->Appearance & Behavior ->System Settings] and uncheck the following options:

    • Synchronize files on frame or editor tab activation
    • Save files on frame deactivation
    • Save files automatically if application is idle for [] sec