I'm fairly new to IntelliJ and I'm using it to develop an AngularJS / Java web application. When I make changes to HTML or JavaScript code, I always have to restart the app server (I'm using Jetty). Is there a config or plugin that provides hotswap for HTML/JS/CSS files?
I'm using IntelliJ 12 Ultimate edition.
Reload all files Recompilation happens automatically if the Build project before reloading classes option is enabled in Settings/Preferences | Build, Execution, Deployment | Debugger | HotSwap. If this option is disabled, you need to recompile the files before reloading (Build | Recompile Ctrl+Shift+F9 ).
In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Languages & Frameworks | JavaScript. The JavaScript page opens. From the list, choose one of the supported JavaScript language versions: ECMAScript 5.1.
By default, IntelliJ IDEA shows on-the-fly preview only for HTML and CSS code. To enable Live Edit in JavaScript, select the JavaScript, HTML and CSS option.
From the main menu, select File | New, and then select HTML File from the list. IntelliJ IDEA creates a stub file based on the HTML file template and opens it in the editor.
I had the same problem but I already fixed it. You can follow this steps:
Hope it helps.
You need the option "Update resources". You should be able find this option in your server Run/Debug configuration.
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