You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A worksheet is a Scala file that is evaluated on save, and the result of each
7
-
expression is shown in a column to the right of your program. Worksheets are
6
+
A worksheet is a Scala file that is evaluated on save, powered
7
+
by [Scala Metals](https://scalameta.org/metals/), and the result of each
8
+
expression is shown at the end of the line it is defined on. Worksheets are
8
9
like a REPL session on steroids, and enjoy 1st class editor support: completion,
9
10
hyperlinking, interactive errors-as-you-type, etc. Worksheet use the extension
10
-
`.sc`.
11
+
`.worksheet.sc`.
11
12
12
13
How to use the worksheets
13
14
=========================
14
15
The only supported client for the Worksheet mode is [Visual Studio
15
16
Code](https://code.visualstudio.com/).
16
17
17
-
To use the worksheets, start Dotty IDE by [following the
18
-
instruction](ide-support.md) and create a new file `MyWorksheet.sc` and
18
+
To use the worksheets, start Metals by [following the
19
+
instruction](ide-support.md) and create a new file `MyWorksheet.worksheet.sc` and
19
20
write some code:
20
21
21
22
```scala
@@ -24,27 +25,20 @@ println("Hello, worksheets!")
24
25
456+ xyz
25
26
```
26
27
27
-
On top of the buffer, the message `Run this worksheet` appears. Click it to
28
-
evaluate the code of the worksheet. Each line of output is printed on the right
28
+
On top of the buffer, the message `Copy Worksheet Output` appears. Save the file to evaluate the code of the worksheet. Each line of output is printed on the right
29
29
of the expression that produced it. The worksheets run with the classes of your
0 commit comments