'Tailwindcss Intellisense not working in VS Code
I have checked out many answers from Stack Overflow but I wasn't able to fix the issue that IntelliSense not working for Tailwindcss. But vscode Intellisense working for other things like python and javascript. Please anybody help me why this isn't working. I am using Tailwindcss Cli. even CSS file Intellisense also not working.
my config file is. tailwind.config.js
module.exports = {
content: ["./src/**/*.{html,js}"],
theme: {
extend: {},
},
plugins: [],
}
I also added this setting into .vscode/settings.json
{
"css.validate": false,
"liveServer.settings.port": 5501,
"tailwindCSS.emmetCompletions": true,
"tailwindCSS.includeLanguages": {
"plaintext": "html",
"javascript":"javascript"
},
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"tailwindCSS.classAttributes": [
"class",
"className",
"ngClass"
]}
once a thing. CSS compiled successfully but Intellisense not working. and this is my project folder structure. please anybody help me, please.
Solution 1:[1]
Solution 2:[2]
I found that intellisense for the extension will not work with single quotes. I had my ESLint config set to "jsx-quotes": ["warn", "prefer-single"]. If I use double quotes in my classNames, the intellisense works fine.
The solution for me was to update my settings.json to include "editor.quickSuggestions": { "strings": true }
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | A1exandr Belan |
| Solution 2 | Barton Young |


