IntelliSense with extendVariants #2824
-
Hello, is there a way to use tailwind IntelliSense with vsCode while extending a variant with extendVariants. I followed the documentation on https://www.tailwind-variants.org/docs/getting-started#intellisense-setup-optional, but it doesn't work with the extendVariants function. So if anyone have some hint to fix this it will be really helpful, thank you ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@teo-goulois Could you provide your code? The following config is only work for {
"tailwindCSS.experimental.classRegex": [
["tv\\((([^()]*|\\([^()]*\\))*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
]
} |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer, so here a simple example of what I have:
I have this extended component from the doc, and I was wondering if there is a way to enable IntelliSense there ? |
Beta Was this translation helpful? Give feedback.
As @winchesHe explained, you can just modify the LSP setting to this:
It works ^