Intellij IDEA – How to build project automatically

By default, Intellij IDEA doesn’t compile classes automatically. But, you can enable the auto compile feature by following steps :

  1. In “Project settings or preferences”
  2. Select “Build, Execution, Deployment -> Compiler”
  3. Checked Make project automatically
idea-build-project-automatically

P.S This feature is available since IDEA 12

References

  1. Brand New Compiler Mode in IntelliJ IDEA 12

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.

Comments

avatar
2 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
Taylor StinsonStephan RauhIntellij + Infinitest Continuous Testing Recent comment authors
newest oldest most voted
trackback
Intellij + Infinitest Continuous Testing

[…] Intellij IDEA – How to build project automatically […]

Stephan Rauh
Guest
Stephan Rauh

Note that the project is only built if the application isn’t running. In my eyes, that makes it almost useless.

Taylor Stinson
Guest
Taylor Stinson

Its meant for Unit testing mostly. Its very useful being able to type a few lines and check to see if a test goes green.

However what is annoying is that it doesn’t use a java-linter test before building wasting a lot of cycles.