SBT in Scala compile when you save a file

I’ve worked on some Scala projects recently using SBT (Scala Building Tool) and every time I had a change in a file I needed to go to SBT and type compile until I found a simple instruction to keep it compiling for me. Just execute SBT and run the following command:

~ compile

Now every time you save a file it will be compiled automatically. In the official documentation you can see more details.