diff options
author | Unknown <guilgaly@gmail.com> | 2019-04-20 19:32:56 +0200 |
---|---|---|
committer | Unknown <guilgaly@gmail.com> | 2019-04-21 18:57:48 +0200 |
commit | a6dcde1472df86509ed8b80eedcc7a0560249aed (patch) | |
tree | d9a6ee3e8d9b4306f9ee145bd94d9e7dda0ec51a /docs | |
parent | 0d16d730cbdf31b2f88ca602fac73bf1bf622a90 (diff) | |
download | mill-a6dcde1472df86509ed8b80eedcc7a0560249aed.tar.gz mill-a6dcde1472df86509ed8b80eedcc7a0560249aed.tar.bz2 mill-a6dcde1472df86509ed8b80eedcc7a0560249aed.zip |
Switch from scalafmt-cli to scalafmt-dynamic
Diffstat (limited to 'docs')
-rw-r--r-- | docs/pages/2 - Configuring Mill.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/pages/2 - Configuring Mill.md b/docs/pages/2 - Configuring Mill.md index dbcbcee4..f6ca86a0 100644 --- a/docs/pages/2 - Configuring Mill.md +++ b/docs/pages/2 - Configuring Mill.md @@ -237,6 +237,12 @@ Now you can reformat code with `mill foo.reformat` command. You can also reformat your project's code globally with `mill mill.scalalib.scalafmt.ScalafmtModule/reformatAll __.sources` command. It will reformat all sources that matches `__.sources` query. +If you add a `.scalafmt.conf` file at the root of you project, it will be used +to configure formatting. It can contain a `version` key to specify the scalafmt +version used to format your code. See the +[scalafmt configuration documentation](https://scalameta.org/scalafmt/docs/configuration.html) +for details. + ## Common Configuration ```scala |