简体   繁体   中英

Elixir's `mix format` configuration options

I'm trying to find a list a configurable options for mix format to put in the formatter config file, but I can't for the life of me find it. It's not in the mix format docs or anywhere else I've looked. Anyone know where I can find this information?

It turns out that mix format does not have a lot of options to set, and what you see on the mix docs page is exactly what you get. It seems there are not a breadth of settings to make it more opinionated.

You should read the docs: Formatting Options

There are plenty of guides to get you started online as well, for example: Everything you need to know about Elixir's new formatter

当您需要一堆选项来微调项目的格式时,请尝试其中一个工具https://github.com/h4cc/awesome-elixir#code-analysis ,我们目前正在使用credo

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM