在scala REPL中,可以通过 :help
显示可用命令
scala> :help
All commands can be abbreviated, e.g., :he instead of :help.
...
:help [command] print this summary or command-specific help
...
...
:reset [options] reset the repl to its initial state, forgetting all session entries
...
例如,我在哪里可以找到 :reset
命令的 [options]
?我试过了 :help reset
将repl重置为其初始状态,忘记所有会话条目
与 :help
中显示的相同,没那么有用
我正在使用Scala版本2.11.7
1 回答
虽然它不是完整的文档,但这个对话指出了如何使用
reset
/replay
命令:https://github.com/scala/scala/pull/3986