You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@nicwhitts
I ran into the same problem. I added classRegex in settings.json, but inteliisense didnt work.
I got it working after installing tailwindcss and postcss 8 dependencies.
Also, ran npx tailwindcss init command to create default tailwind.config.js in the root.
Activity
jaredh159 commentedon Nov 4, 2021
I don't know honestly, but it shouldn't be too hard to come up with some regexes that work, for instance (not tested)
etc... if you get it working, can you report back what you used?
axeldelafosse commentedon Nov 5, 2021
I'm solving this by creating my own design system (
View,Textand more) where the components are taking atwprop.Then you can add
twtoTailwind CSS: Class AttributesVS Code extension setting to get IntelliSense working!For example:
rickyalmeidadev commentedon Nov 11, 2021
I've been using it for a few weeks and it's been working perfectly.
nicholaswhittle commentedon Nov 11, 2021
Great, my use case is getting it to work with emacs which isn't working with the same regex expression. When i figure it out il post it here.
jaykay-p commentedon Nov 13, 2021
@nicwhitts
I ran into the same problem. I added classRegex in settings.json, but inteliisense didnt work.
I got it working after installing tailwindcss and postcss 8 dependencies.
Also, ran
npx tailwindcss initcommand to create default tailwind.config.js in the root.Pedromdsn commentedon Nov 13, 2021
Great, the other alternatives don't work for me and that was going to be 10/10 to dispense with the workarounds.
ahmed-rezk-dev commentedon Nov 17, 2021
I was looking to do the same. I found this solution. I use Neovim and it works great.
For VScode:
For Neovim LSP:
Source: https://githubmemory.com/repo/kabouzeid/nvim-lspinstall/issues/45
arnabtarwani commentedon Dec 3, 2021
You could also add
stylein the extensions under TailwindCSS extension Tailwind CSS IntelliSense in VS Code Settings (UI)