How to format-on-save HTML-Eex files in Visual Studio Code?

Viewed 1175

I use Visual Studio Code editor for almost everything and also during my journey to learn Elixir and Phoenix. One thing that drives me crazy, I can't find a way to format the HTML-EEx template files. I am looking for a pleasant experience like with Prettier in JavaScript context, ElixirLS extension for Elixir itself or the Python extension.

What settings do you use to format HTML-EEx files in Visual Studio Code? Which extension do you use?

1 Answers

I use beautify. And You have to add in your settings files: "beautify.language": { "html": ["htm","html","html-eex"]} Cautious the lower-case of "html-eex".

Related