Hi,
During learn surface
and try elixir
v1.13 features, I created a tool called surface_formatter_plugin. It’s a tool built on top of surface_formatter
and Elixir v1.13 formatted plugin. This tool can format only code inside ~F
sigil and .sface
file extension.
The installation is just add {:surface_formatter_plugin, "~> 0.1"}
to your mix dependencies block. And then run mix deps.get
and mix deps.compile
to make the plugin presents under deps directory. After that, just call mix format
to format your code.
Since Elixir v1.13 is in development, the library set minimum elixir version to 1.13-dev
. So, it needs to compile Elixir from master branch.
Suggestion are welcome.