Tailwind CSS IntelliSense extension and "Tailwind CSS" language mode
Closed this issue · 1 comments
tomgenoni commented
I'm working on a Next.js project with Tailwind installed along with the Tailwind CSS IntelliSense extension for autocomplete of Tailwind classes in *.css
files.
When the Language Mode is set to "Tailwind CSS" (see attached):
- Tailwind CSS IntelliSense works
- CSS Variable Autocomplete doesn't work
When the Language Mode is set to "CSS":
- Tailwind CSS IntelliSense doesn't work
- CSS Variable Autocomplete works
Is there a way I can configure CSS Variable Autocomplete to work in CSS files with Language Mode set to "Tailwind CSS"?
tomgenoni commented
Adding tailwindcss
to the languages in the VS Code settings appears to fix my issue:
"cssVariables.languages": [
"tailwindcss",
"svelte",
"scss",
]
I'm now able to leave the Language Mode set to Tailwind CSS and both autocomplete options now work.