1. Enable automatic compilation
File->setting->compiler
Check the above Build project automatically
2. Modify the run/debug configuration
Run->Edit Configurations -> default -> application (还有Junit)
Change make to make under Before Launch, no error check.
3. Execute File->Invalidate Caches /Restart
4. Registry
ctrl+alt+shift+'/'
pop-up box selection is as follows, check it.
5. Shut down
and restart to close the idea. After restarting, open the project. If the project fails to compile, the idea will automatically prompt with a red wavy line by default. Now when modifying js, html, css, there is no need to restart the project!
6. After modifying the file, it will be automatically compiled, and then run --> reload changed classes to load the modified classes. It is more convenient to set shortcut keys: Ctrl+R, Ctrl+Shift+Alt+R, Ctrl+right mouse button (this shortcut is the most convenient)