As of IntelliJ 12 there’s an option to automatically build your project upon source changes. In “Settings” –> Build, Execution, Deployment –> “Compiler” check the checkbox “Build project automatically”. This will immediately show any compile errors in the project tree.