Closed stesvis closed 2 years ago
Hey @stesvis. This is working as expected, Tailwind class IntelliSense is only provided in class
attributes.
However, if you want to enable IntelliSense in arbitrary strings you could use the tailwindCSS.experimental.classRegex
setting. Check out my comment for more information and the discussion here for some examples: https://github.com/tailwindlabs/tailwindcss/discussions/7554
Hope that helps!
What version of Tailwind CSS IntelliSense are you using?
v0.9.1
What version of Tailwind CSS are you using?
"tailwindcss": "^3.2.1"
What package manager are you using?
npm
What operating system are you using?
Windows
Tailwind config
VS Code settings
Reproduction URL
Describe your issue
I have a
./src/styles/style.js
file such as:and I am wondering if the intellisense is supposed to work in a plain
js
file. I don't get any intellisense (but it works in components when I type into theclassName
property.I thought that this setting would do it, but it didn't:
Maybe it's not possible at all? Or how can I do to enable it? Thanks