When you're using the SBT tool with your Scala projects, it can be helpful to list your “sbt history,” the history of your SBT commands. Courtesy of the SBT tool itself, here are the history commands you can use from the
sbt command line:
History commands: !! Execute the last command again !: Show all previous commands !:n Show the last n commands !n Execute the command with index n, as shown by the !: command !-n Execute the nth command before this one !string Execute the most recent command starting with 'string' !?string Execute the most recent command containing 'string'
A cool thing I just learned is that this history is contained within each project, so if you move to Project1, fire up SBT, and then look at the history with these commands, that history will be different than a different project, such as Project2. (I just learned this when I started working on a project I hadn’t touched in almost three months.)