scalafmt

Using vs code, how to get scala format to work and format my code?

喜你入骨 提交于 2020-05-30 02:46:08
问题 I have the scala format plugin in my multi project sbt repository. addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.2") So in the sbt console if I run scalafmt it works fine My build.sbt has: scalafmtOnCompile := true If I do a ~compile in sbt or just compile manually, it doesn't format my code during compilation. What is wrong with my setup? Also, running scalafmt works but it doesn't format my .scala files in /project like my Dependencies.scala file. Why is it ignoring these files? I am