summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2019-05-20 07:17:33 +0800
committerLi Haoyi <haoyi.sg@gmail.com>2019-05-20 07:17:33 +0800
commit827c72af63fdfd3ee6e4ed0e18a3e5a42e2c0c1c (patch)
tree4e7dc37560a1c7d772e7bdbeb675e91935dde1ee /docs
parent673722ca35cf7ee555d22c27d40cfcee439aa022 (diff)
parenta6dcde1472df86509ed8b80eedcc7a0560249aed (diff)
downloadmill-827c72af63fdfd3ee6e4ed0e18a3e5a42e2c0c1c.tar.gz
mill-827c72af63fdfd3ee6e4ed0e18a3e5a42e2c0c1c.tar.bz2
mill-827c72af63fdfd3ee6e4ed0e18a3e5a42e2c0c1c.zip
Merge branch '600'
Diffstat (limited to 'docs')
-rw-r--r--docs/pages/2 - Configuring Mill.md6
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