Tailwindcss intellisense doesn't work in tsx file.

takashi-kisaku

TK

Posted on August 8, 2022

Tailwindcss intellisense doesn't work in tsx file.

I usuary use tailwind css with vscode. But one day, Tailwindcss intellisense doesn't work in tsx file. I configured some settings like below.

// It didn't work.
    "editor.quickSuggestions": {
        "strings": true
    },
    "tailwindCSS.emmetCompletions": true,
    "tailwindCSS.experimental.classRegex": [
        "className=\"([^`]*)" // className="From here
    ],
    "tailwindCSS.includeLanguages": {
        "javascript": "javascript",
        "html": "HTML"
    },

Enter fullscreen mode Exit fullscreen mode

My solution was to delete tailwind.config.js and configure it again!!

💖 💪 🙅 🚩
takashi-kisaku
TK

Posted on August 8, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related