dujskan
Visual studio code html.eex support
Hi,
What plugins and settings are you guys using for making life easier coding templates? Specifically i would like to know if there is a way to solve auto closing html tags.
Thanks,
Sebastian.
First Post!
acrolink
You need to tell VS Code to treat html.eex files as HTML.. Just google this topic to find out how to do it.. I am not in front of my PC to tell you right now..
Most Liked
DimWell
The above solution is good if you need it as a temporary solution…
For a long term, change your user settings in:
File -> Preferences -> Settings
Scrool Down until you will see:
Files(14) - number might be different
There you would see text like:
// Configure file associations to languages (e.g. “*.extension”: “html”).
These have precedence over the default associations of the languages installed.
“files.associations”: {},
Press edit → it should copy settings automatically to the right screen where you have USER settings.
Change to:
“files.associations”: {“*.html.eex”: “html”}
Save and Close File with settings
Test that it works ![]()
aj-foster
If you use the vscode-elixir-ls extension, note that EEx-related settings may need to change due to recent updates. With the latest version of that package, capitalize the second E:
"emmet.includeLanguages": {
"HTML (EEx)": "html"
}
onlydole
I was able to get emmet working in VSCode with the following setting:
"emmet.includeLanguages": {
"HTML (Eex)": "html"
}
Last Post!
axelson
Popular in Questions
Other popular topics
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









