@@ -3,16 +3,15 @@ layout: doc-page
3
3
title : Setting up your IDE
4
4
---
5
5
6
- You can use either Metals with your favorite editor (VS Code, Neovim, Sublime)
7
- or [ IntelliJ IDEA for
8
- Scala] ( https://www.jetbrains.com/help/idea/discover-intellij-idea-for-scala.html )
6
+ You can use either Metals with your favorite editor or
7
+ [ IntelliJ IDEA for Scala] ( https://www.jetbrains.com/help/idea/discover-intellij-idea-for-scala.html )
9
8
to work on the Scala 3 codebase. There are however a few additional
10
9
considerations to take into account.
11
10
12
11
## Bootstrapping Projects
13
12
14
- The sbt build for dotty implements bootstrapping within the same build, so each component has
15
- two projects:
13
+ The sbt build for dotty implements bootstrapping within the same build, so each
14
+ component has two projects:
16
15
17
16
```
18
17
sbt:scala3> projects
@@ -33,22 +32,23 @@ you'll actually want these modules exported. In order to achieve this you'll
33
32
want to make sure you do two things:
34
33
35
34
1 . You'll want to find and change the following under
36
- ` commonBootstrappedSettings ` which is found in the
37
- [ ` Build.scala ` ] ( https://github.com/scala/scala3/blob/main/project/Build.scala )
38
- file.
35
+ ` commonBootstrappedSettings ` which is found in the
36
+ [ ` Build.scala ` ] ( https://github.com/scala/scala3/blob/main/project/Build.scala )
37
+ file.
39
38
40
39
``` diff
41
40
42
41
- bspEnabled := false,
43
42
+ bspEnabled := true,
44
43
```
45
44
46
- 2 . Set ` sbt ` as your build server instead of the default, Bloop. You can achieve
47
- this with the ` Metals: Switch Build Server ` command and then choosing sbt. In
48
- VSCode, this looks like this:
45
+ 2 . Run ` sbt publishLocal ` to get the needed presentation compiler jars.
49
46
50
- ![ bsp-switch] ( https://user-images.githubusercontent.com/777748/241986423-0724ae74-0ebd-42ef-a1b7-4d17678992b4.png )
47
+ By default Metals uses Bloop build server, however you can also use sbt
48
+ directly. You can achieve this with the ` Metals: Switch Build Server ` command
49
+ and then choosing sbt. In VSCode, this looks like this:
51
50
51
+ ![ bsp-switch] ( https://user-images.githubusercontent.com/777748/241986423-0724ae74-0ebd-42ef-a1b7-4d17678992b4.png )
52
52
53
53
### IntelliJ
54
54
0 commit comments