Skip to content
Snippets Groups Projects
Commit 7a5f9653 authored by Guillaume Martres's avatar Guillaume Martres
Browse files

fix repl multiline instructions on macOS

parent c3629cbd
No related branches found
No related tags found
No related merge requests found
......@@ -217,8 +217,7 @@ scala> max(List(1,3,2))
res1: Int = 3
```
You can enter a multiline expression in the REPL by using `Alt+Enter`
(`Option+Enter` on macOS) instead of `Enter`:
You can enter a multiline expression in the REPL by using `Alt+Enter` instead of `Enter`:
```scala
scala> if 1 == 1 then
......@@ -228,6 +227,10 @@ scala> if 1 == 1 then
val res0: String = a
```
(on macOS, first go to `Terminal -> Preference -> Profiles -> Keyboard` and then
select `Use Option as Meta key`, then `Option+Enter` will work for multiline
expressions.)
In order to exit the Scala REPL and go back to sbt, type `Ctrl+D`.
### The worksheet mode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment