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
Copy file name to clipboardExpand all lines: website/docs/cookbooks/vscode.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
-
title: Setup Scala CLI project in VSCode
2
+
title: Setup a Scala CLI project in VSCode
3
3
sidebar_position: 7
4
4
---
5
5
6
6
Scala CLI can generate the files that are necessary for providing IDE support in Visual Studio Code.
7
7
8
-
For example, here is a simple project in scala-cli which contains only one main and test class.
8
+
For example, here is a simple project in scala-cli which contains only one main and one test class.
9
9
10
10
```scala title=HelloWorld.scala
11
11
@main
@@ -23,13 +23,14 @@ class MyTests extends munit.FunSuite {
23
23
}
24
24
```
25
25
26
-
The following command generates configurations files for VSCode support:
26
+
The following command generates configuration files for VSCode support:
27
27
28
28
```bash
29
29
scala-cli setup-ide .
30
30
```
31
31
32
-
There is also another way. The first time you run the `run`|`compile`|`test` commands, the configuration files for the VSCode will be also generated.
32
+
There is also another way. The first time you run the `run`|`compile`|`test` commands, the configuration files for the
33
+
VSCode will be also generated.
33
34
34
35
```bash
35
36
scala-cli run .
@@ -42,7 +43,8 @@ and then, we launch Visual Studio Code
42
43
code .
43
44
```
44
45
45
-
After starting metals, you will see `run/debug` buttons in `HelloWorld.scala` and `test/debug` in `MyTests.test.scala` (assuming the following directory layout).
46
+
After starting metals, you will see the `run/debug` buttons in `HelloWorld.scala` and `test/debug` in `MyTests.test.scala` (
47
+
assuming the following directory layout).
46
48
47
49

48
50
@@ -56,4 +58,4 @@ And the similar effect after pressing the `test` button.
56
58
57
59
import VSCodeTest from '@site/static/img/vscode-test.png';
0 commit comments