Replies: 1 comment 1 reply
-
Hey @Tasselmi, when thinking about sbt vs your IDE not much changes if you're using Metals or IntelliJ. sbt is the build tool of your project meaning that your build definition is defined there. Just with sbt and your code you can compile it, run tests, and all sorts of other things like publishing, license checks, etc. IDE's like IntelliJ and Metals (not technically an IDE, but a language server, but the distinction isn't important here) need to know about your build definition in order to know what version of Scala you're using, what dependencies you're using, and basically know the general structure of your project. Many of the language features you expect from your editor like "goto definition", "find references", or "hovers" are all fully powered by your IDE with the information that your build definition has given them. So to summarize, you can sort of think about it like this sbt
your IDE
Hope this helps. If you want a much longer explanation about how Metals all works together with various tools you can check out this video. |
Beta Was this translation helpful? Give feedback.
-
I am now switch from idea to vscode. Just curious about the relation and diffs between the two. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions