idea automatic compilation settings

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. 
write picture description here

 

       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)

       

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326314248&siteId=291194637