An Atom package to format Elixir source code using the exfmt formatter.
Add exfmt to your mix.exs dependencies:
def deps do
[{:exfmt, [github: "lpil/exfmt"]}]
endFetch and install dependencies:
mix deps.getInstall exfmt-atom:
apm install exfmt-atomYou can use exfmt-atom in two ways:
- Manually via the keyboard shortcut
CTRL + ALT + F(or by going to Packages → Elixir Formatter → Format File). If there isn't a text selection, the entire file will be formatted. - Automatically by enabling Format on Save in Settings, which will format the entire file on save.
exfmt is in alpha and doesn't correctly format all Elixir code.
