Its actually a pretty simple fix. open your settings.json file then add this to get the intellisense working on all files

"tailwindCSS.includeLanguages": {
    "html": "html",
    "javascript": "javascript",
    "css": "css"
},
"editor.quickSuggestions": {
    "strings": true
}
Answer from Zal on Stack Overflow
Discussions

Tailwind CSS Intelisense not working on VSCode
hi, I have problems with the Tailwind CSS Intelisense on VSCode. the issue I'm seeing is that the plugin thinks that the ' in tailwind.config.js' is part of .js', which causes it to have issues rec... More on github.com
🌐 github.com
14
July 11, 2022
visual studio code - VSCode Tailwind CSS Intellisense autocompletion and suggestions not working after installing Tailwind v4 - Stack Overflow
I've intsalled Tailwind CSS v4 (released in Jan'25) in VSCode project (Vite): npm install tailwindcss @tailwindcss/vite Now the Tailwind CSS Intellisense extension in VSCode is not working. It is ... More on stackoverflow.com
🌐 stackoverflow.com
vsCode Intellisense Not Working with V4
It took me a bit to figure this out. The configuration for the VS Code TailwindCSS intellisense plugin for v4 is near the bottom of this page https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss More on reddit.com
🌐 r/tailwindcss
5
6
December 4, 2024
tailwind css - Tailwindcss Intellisense not working in VS Code - Stack Overflow
I have checked out many answers from Stack Overflow but I wasn't able to fix the issue that IntelliSense not working for Tailwind CSS. But VS Code's IntelliSense working for other things like pytho... More on stackoverflow.com
🌐 stackoverflow.com
🌐
DEV Community
dev.to › mrpaulishaili › vscode-intellisense-broken-in-tailwind-css-v4-heres-the-solution-4d5
VSCode IntelliSense Broken in Tailwind CSS v4? Here’s the Solution - DEV Community
March 20, 2025 - To remedy this, update your settings ... popup will appear as expected. Validate Your Project Structure: Ensure that your Tailwind CSS files are consistently located....
🌐
GitHub
github.com › tailwindlabs › tailwindcss-intellisense › issues › 576
Tailwind CSS Intelisense not working on VSCode · Issue #576 · tailwindlabs/tailwindcss-intellisense
July 11, 2022 - hi, I have problems with the Tailwind CSS Intelisense on VSCode. the issue I'm seeing is that the plugin thinks that the ' in tailwind.config.js' is part of .js', which causes it to have issues recognising my tailwind.config.js file. Tai...
Author   dariusKoh
🌐
Plain English
plainenglish.io › blog › how-to-fix-tailwind-css-intellisense-in-visual-studio-code-3dede794df21
How to Fix Tailwind CSS IntelliSense in Visual Studio Code
You can also open the Settings editor from the Command Palette (⇧⌘P) with Preferences: Open Settings or use the keyboard shortcut (⌘,). You can place the snippet anywhere in your settings.json and it should work just fine. If it doesn't just give it 1–2 minutes or reload the VSCode window. ... If you want to use Emmet with your TailwindCSS make sure to add this line "tailwindCSS.emmetCompletions": true to the same settings.json file.
Top answer
1 of 14
15

Support and improvements for TailwindCSS v4 are in progress. As of the fix in TailwindCSS Intellisense VSCode extension since February 2025 (v0.14.3), it is possible to specify the new CSS-first configuration as a configuration file.

Due to the proper v4 configuration detection, Intellisense will work the same way as in v3 without any additional settings. It remains compatible with both v3 and v4 versions simultaneously.

  • tailwindlabs/tailwindcss-intellisense PR #1167: Clarify how the configFile option works with v4

Tailwind CSS v4.x (CSS entrypoints)

For v4 projects, specify the CSS file(s) that serve as your Tailwind entrypoints.

If your project contains a single CSS entrypoint, set this option to a string:

"tailwindCSS.experimental.configFile": "src/styles/app.css"

For projects with multiple CSS entrypoints, use an object where each key is a file path and each value is a glob pattern (or array of patterns) representing the files it applies to:

"tailwindCSS.experimental.configFile": {
  "packages/a/src/app.css": "packages/a/src/**",
  "packages/b/src/app.css": "packages/b/src/**"
}

Additionally, it no longer displays an error message if the configuration file is missing in v4.

  • tailwindlabs/tailwindcss-intellisense PR #1164: Don't create v4 projects for CSS files that don't look like v4 configs

The VSCode extension can also be used for v4 projects that are not installed via NPM. This is important because the extension determines whether you are using v3 or v4 in your project based on the NPM package version by default. From now on, it can also detect the version for other installation methods (i.e., even without a package-lock.json).

  • tailwindlabs/tailwindcss-intellisense PR #1157: Allow v4.0 projects not installed with npm to use IntelliSense

Since TailwindCSS no longer supports Sass, Less, or Stylus preprocessors from v4 onwards, the Intellisense extension will also not consider them starting from v4.

  • tailwindlabs/tailwindcss-intellisense PR #1159: Ignore preprocessor files when looking for v4 configs
2 of 14
7

Tailwind css has released new version (4.0.0) and after installing it - ( npm install tailwindcss @tailwindcss/vite ) intellisense extension on VS Code stops working!

This occurs because in V4.0.0 there is no 'tailwind.config' file present in the root dir

To solve this problem follow these steps :

1 - after installing tailwind v4 , go to tailwind website and go to the old version that is v3.4.17

2 - then.. -> Get Started -> Framework Guides -> vite

3 - After that you can see the old steps. in the step 3 : " Configure your template paths " - copy the code of 'tailwind.config.js' :

       / @type {import('tailwindcss').Config} */
           export default {
         content: [
           "./index.html",
           "./src//*.{js,ts,jsx,tsx}",
         ],
         theme: {
         extend: {},
         },
          plugins: [],
          }

and then come back to vs code

4 - in vs code create 'tailwind.config.js' file in the root dir

5 - then paste the code which you've copied from Tailwind website (as mentioned in 3)

now autocompletion should work fine

🌐
JavaScript in Plain English
javascript.plainenglish.io › how-to-fix-tailwind-css-intellisense-in-visual-studio-code-3dede794df21
How to Fix Tailwind CSS IntelliSense in Visual Studio Code | JavaScript in Plain English
July 17, 2024 - TailwindCSS IntelliSense not working in VSCode? Follow the step-by-step guideline to fix the issue by adding a couple of lines in your VSCode settings file.
Find elsewhere
🌐
GitHub
github.com › tailwindlabs › tailwindcss-intellisense › issues › 813
Vscode tailwindcss intellisense not working · Issue #11529 · tailwindlabs/tailwindcss
July 2, 2023 - I suspect the problem is the tailwind config file, currently my config file is written in typescript whereas the extension supports config file in javascript. In case I change the config file to javascript the intellisense starts working.
Author   Amrender-Singh
🌐
Tailwind CSS
tailwindcss.com › docs › editor-setup
Editor setup - Getting started - Tailwind CSS
Cursor is an AI-native code editor with features like context-aware autocomplete and built-in coding agents. Since it supports VS Code extensions, all of the Tailwind CSS tooling you're already familiar with works out of the box – including our official Tailwind CSS IntelliSense extension and the Prettier plugin for class sorting.
🌐
Reddit
reddit.com › r/vscode › anybody experienced problems with vs code and tailwind css intellisense?
r/vscode on Reddit: Anybody experienced problems with VS Code and Tailwind CSS IntelliSense?
November 6, 2019 -

Anybody experienced problems with VS Code and Tailwind CSS IntelliSense? Tailwind CSS IntelliSense is like completely dead! it looks like its installing fine.
im trying to use it in combination with vue, but i have tried normal HTML files and nothing happens. Vs code do autocomplete things like tags and tags properties.. Any ide anybody?

VS Code v.1.39.2
Tailwindcss v.1.1.3
Tailwind CSS IntelliSense v 0.2.0
Os ubuntu v 19.10

Help....

🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Tailwind CSS IntelliSense - Visual Studio Marketplace
Visual Studio Code>Linters>Tailwind CSS IntelliSenseNew to Visual Studio Code?
Top answer
1 of 5
12

Tailwind CSS IntelliSense extension doesn't work until you have a configuration file in your workspace, as its description clearly states!

You'll be fine even if you're just using the CDN, but you have to create a tailwind.config.js file in your project's root directory, containing the defaults at least:

module.exports = {
    content: ["./src/**/*.{html,js}"],
    theme: {
        extend: {},
    },
    plugins: [],
};

Also, and since you're working with Laravel, I guess you need to add Blade files to be recognized by the extension through this VSC setting (in settings.json):

"tailwindCSS.includeLanguages": {
    "blade": "html",
},

Moreover, this extension can offer intellisense in CSS files. So such files need to be binded too:

"files.associations": {
    "*.css": "tailwindcss",
},

One final note: The content paths are what going to be processed by Tailwind's JIT engine; understanding it is crucial!

Update: In my current setup, it also won't work until I run the project folder as a "VSC workspace".

2 of 5
0

Possible Solution

Disable a single VS Code Extension called: "Bootstrap 4, Font awesome 4, Font Awesome 5 Free & Pro snippets"

Evidence

Tailwind CSS IntelliSense was not working in my Angular project. I had installed Tailwind CSS using their instructions:

Click here

MY VERSIONS

  • VS Code: 1.62.3
  • Tailwind CSS: 3.0.1
  • Angular: 13.0.3

I disabled the extension, mentioned as my "Possible Solution" above, and Tailwind CSS IntelliSense worked instantly.

Demo of Tailwinds CSS IntelliSense in my Angular project

🌐
Reddit
reddit.com › r/tailwindcss › my intellisense isn't working - whats wrong with this vscode setting.json file?
r/tailwindcss on Reddit: My Intellisense isn't working - whats wrong with this VScode setting.json file?
January 8, 2024 -

I'm a new user trying to get Intellisense's autopredict Tailwindcss classes feature to work in css, html, html.erb files. It's currently not working anywhere. Intellisense is definitely installed, enabled globally, and I really can;t see what's going wrong, here's my VScode settings.json contents. Can anybody see what might be wrong?

{
"workbench.colorTheme": "Default Dark+",
"editor.tabSize": 2,
"git.autofetch": true,
"workbench.startupEditor": "none",
"diffEditor.ignoreTrimWhitespace": false,
"github.copilot.enable": {
"*": true,
"plaintext": false,
"markdown": true,
"scminput": false
},
"emmet.includeLanguages": {
"*.html.erb": "html",
"erb": "html"
},
"files.associations": {
"*.html.erb": "html",
"*.css": "tailwindcss"
},
"rubyLsp.rubyVersionManager": "rvm",
"[html.erb]": {},
"window.zoomLevel": 1,
"tailwindCSS.includeLanguages": {
"javascript": "javascript",
"html": "html",
"erb": "html"
},
"tailwindCSS.emmetCompletions": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"tailwindCSS.experimental.classRegex": [
"\\bclass:\\s*'([^']*)'",
"\\bclass:\\s*\"([^\"]*)\""
],
"tailwindCSS.includeLanguages": {
"javascript": "javascript",
"html": "html",
"erb": "html"
}
}

TIA

🌐
GitHub
github.com › tailwindlabs › tailwindcss › discussions › 15132
[v4] VSCode extension not working when using only @theme directive · tailwindlabs/tailwindcss · Discussion #15132
November 23, 2024 - BUT... 🧨 the official VSCode Tailwind IntelliSense extension currently relies on that config file to function properly. No config file = no autocomplete, no class sorting, no theme value suggestions.
Author   tailwindlabs
🌐
DEV Community
dev.to › snehalkadwe › setup-tailwind-css-intellisense-in-vs-code-3aia
Setup Tailwind CSS Intellisense in VS code - DEV Community
July 20, 2022 - Search Tailwind CSS Intellisense and install and after installation make sure you have tailwind config file named as named tailwind.config.js or tailwind.config.cjs in your workspace to activate it.