Configure IntelliJ IDEA to use the provided sbt wrapper script:
Go
to File -> Settings -> Build, Execution, Deployment -> Compiler -> Uncheck "Automatically show first error in editor" and "Build project automatically" -> Apply -> OK
Then go to Build tool -> BSP -> Check "build automatically on save"
If you don't have sbt installed already, you can use the provided wrapper script:
./sbtx -h # shows an usage of a wrapper script
./sbtx compile # build the project
./sbtx test # run the tests
./sbtx run # run the application (Main)
For more details check the sbtx usage page.
Otherwise, if sbt is already installed, you can use the standard commands:
sbt compile # build the project
sbt test # run the tests
sbt run # run the application (Main)