Elixir source code formatter for the Atom editor. It automatically formats Elixir code using the new formatter in Elixir 1.6.
Note that atom-elixir-formatter
requires Elixir 1.6, which is currently unreleased. You'll need to download and compile the master branch of Elixir:
git clone https://github.com/elixir-lang/elixir.git
cd elixir
make clean test
Install the atom-elixir-formatter
package:
apm install atom-elixir-formatter
Restart Atom and change the atom-elixir-formatter
settings for Elixir Executable to the absolute path of the elixir
executable.
Elixir files are formatted automatically on save. This can be disabled in Settings.
You can manually format sections of code using the keyboard shortcut CTRL + ALT + F.