Typing the command
quit will exit the
console that's been nested inside of
sbt. You can also abbreviate these commands like so:
Not interrupting system thread Thread[process reaper,10,system]
[success] Total time: 138 s, completed May 25, 2014 1:33:22 PM
:e. This info is covered in the help page of
All commands can be abbreviated, e.g. :he instead of :help.
Those marked with a * have more detailed help, e.g. :help imports.
:cp <path> add a jar or directory to the classpath
:help [command] print this summary or command-specific help
:history [num] show the history (optional num is commands to show)
:h? <string> search the history
:imports [name name ...] show import history, identifying sources of names
:implicits [-v] show the implicits in scope
:javap <path|class> disassemble a file or class name
:load <path> load and interpret a Scala file
:paste enter paste mode: all input up to ctrl-D compiled together
:power enable power user mode
:quit exit the interpreter
:replay reset execution and replay all previous commands
:reset reset the repl to its initial state, forgetting all session entries
:sh <command line> run a shell command (result is implicitly => List[String])
:silent disable/enable automatic printing of results
:type [-v] <expr> display the type of an expression without evaluating it
:warnings show the suppressed warnings from the most recent line which had any
Keyboard shortcuts in console?
What you're really after here is to find out what keyboard shortcuts if any are available to you via
console. To that end this post would seem to indicate that there are few to use:
I found the key shourtcut in scala interpreter, only support ctl+a,ctl+e,and ctl+f,ctl+b, and even tab key not supprt , not to mention code autocompletion (like f#'s)
Source: Subject: scala interpreter console keyboard shortcut and
code autocompletion? - msg#00309
What about REPL?
According to this SO Q&A titled: Is there a way to use ctrl-d as forward delete in Scala's REPL? you can either make use of the default keybindings in Scala 2.9's REPL via the
You can also apparently override the keybindings with your own custom ones like so:
$ scala -Djline.keybindings=/path/to/keybindings.properties
See the SO Q&A referenced above for more details.