how to run sbt projects with intellij idea

  1. From the Run menu, select Edit configurations
  2. Click the + button and select SBT Task.
  3. Name it Run the program.
  4. In the Tasks field, type ~run. The ~ causes SBT to rebuild and rerun the project when you save changes to a file in the project.
  5. Click OK.
  6. On the Run menu. Click Run ‘Run the program’.

Source