Replies: 1 comment 10 replies
-
Metals uses the compiler option for that, so you would need to add it to scalac options if you want to see unused imports. The options are -Ywarn-unused (or -Wunused in 2.13). |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
metals doesn't highlight unused imports in vscode (probably a config error on my side).
Let's say I have two imports
DataFrame
is used,Column
isn't. Metals doesn't highlight that unused column.The "bloop sbt already installed"-checkbox is unticked:
I read somewhere that I should create
projects/build.sbt
, but that seems sbt specific and I assume metals would create that file if needed.Organize Imports
does organize the imports but doesn't remove the unused import.Could somebody tell me how I can get highlighting working?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions