malloryerik
How to get html.heex files working with the VSCode Tailwind CSS IntelliSense extension?
I haven’t been able to get the VSCode Tailwind IntelliSense extension to work with html.heex files.
The plugin works with a plain .html file in the same project, and works perfectly on Phoenix 1.5 apps.
I looked for a solution here: How to force the Tailwind CSS IntelliSense extension for VSCode work with .html.eex and .html.leex files?, but similar fixes didn’t seem to work.
My tailwind.config.js and postcss.config.js both seem fine, and I set up another new project with the new phx tailwind generator; same result..
Tried my luck with settings.json but so far no ![]()
.
Has anyone dealt with this or got any ideas? Thanks!
![]()
Marked As Solved
johnknott
You can add
"tailwindCSS.includeLanguages": { "phoenix-heex": "html" }
To your settings JSON and it works for standalone heex files.
I think inline heex with the ~H sigil might require changes to the extension.
Also Liked
abekonge
if you just add "elixir": "html", to the includeLanguages, the intellisense works for the ~H-sigil as well:
"tailwindCSS.includeLanguages": {
"phoenix-heex": "html",
"elixir": "html",
}
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
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










