phoenixframework / vscode-phoenix

Syntax highlighting support for Phoenix templates in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=phoenixframework.phoenix
MIT License
157 stars 10 forks source link

Code formatting support #6

Closed NatoBoram closed 2 years ago

NatoBoram commented 2 years ago

The new Phoenix LiveView release supports a new .html.heex and ~H template engine, which deprecates .eex, .leex and ~L. It would be nice to have auto-formatting support for these.

NatoBoram commented 2 years ago

This just happened

You can use it before its release this way

code

NatoBoram commented 2 years ago

Changelog

0.17.8 (2022-04-06)

Enhancements

  • Add HEEx formatter

https://github.com/phoenixframework/phoenix_live_view/blob/v0.17.8/CHANGELOG.md

josevalim commented 2 years ago

The formatting should happen as part of the regular Elixir tooling. :)