brainlid
VS Code formatter for .html.leex and .html.eex files?
What do you use to format your .html.leex and .html.eex files? I’m using VS Code and haven’t found a beautifier I’m happy with yet.
I’d also prefer not to install a Ruby gem for it to work.
Most Liked
praveenperera
So far this (prettier-plugin-eex) is the one that works the best.
I’m using it with vscode using Run on Save - Visual Studio Marketplace
"emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.l?eex$",
"cmd": "prettier --write ${file}"
},
]
},
Thank you for this
4
brainlid
The general consensus I’ve gotten from others is that currently nothing works well and everyone is hand formatting them.
3
mindreframer
I have found a fresh project tackling formatting for html.eex files via a Prettier plugin:
- Adam Zapaśnik on X: "Alright, it's available, prettier eex plugin. Give it a try, please. @akoutmos @elixir_radar @elixirweekly @elixirphoenix https://t.co/IJtMvRvT6i #myelixirstatus" / X
- GitHub - adamzapasnik/prettier_eex_formatter: Escript used by prettier-plugin-eex to format multiline eex expressions · GitHub
- GitHub - adamzapasnik/prettier-plugin-eex: Prettier EEX plugin · GitHub
Not sure how solid this library is, though. Maybe worth exploring.
2
Last Post!
lastgosumatt
Hi there, also had a problem with this, now i use “HookyQR.beautify”
just to add settings.json:
"beautify.language": {
"html": [
"htm",
"html",
"html-eex"
]
},
"files.associations": {
"*.html.eex": "html-eex",
"*.html.leex": "html-eex",
},
"[html-eex]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
1
Popular in Questions
Hi,
I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
I tried installing
elixir 1.11.2
erlang 23.3.4
via asdf in my zsh shell. Enabled the versions locally and globally.
When I list them ...
New
Other popular topics
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set?
Thanks.
New
I would like to know what is the best IDE for elixir development?
New
Phoenix 1.4.0 released
Phoenix 1.4 is out! This release ships with exciting new features, most notably
with HTTP2 support, improved deve...
New
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
Hello everyone,
Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar.
I p...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









