Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hjortur17's avatar

Tailwindcss autocomplete not working in PHPStorm

Hi, I have been trying to figure out why TailwindCSS stopped autocompleting or popping up with suggestion in PHPStorm, has anyone idea? I'm many working in vue files but @apply isn't working either in app.css. Everything is working in WebStorm.

0 likes
13 replies
Sinnbeck's avatar

What does this mean?

I'm many working in vue files

And check for plugin updates, and try invalidating caches

hjortur17's avatar

Maybe it would help knowning that the issues was happening in vue files and css files because I worked with them majority of the time.

The plugin is up to date.

Invalidating the cache did not work

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@hjortur17 try creating a ticket with their support. I know this was fixed in the latest version, so maybe they have a trick to get it working

Lx45_'s avatar

Add this to your tailwind.config.js file

module.exports = {
  mode: process.env.NODE_ENV ? 'jit' : undefined,
}

It worked for me.

5 likes
Lx45_'s avatar

@Sinnbeck Tailwind 3, I had the same Issue with PhpStorm and this worked for me

Sinnbeck's avatar

@Lx45_ interesting :) might be worth sending in to jetbrains support so they can make a fix based on that

Sinnbeck's avatar

@hjortur17 did you try creating a support ticket. They have solved every single issue I ever reported (or gave me a link to the open issue on their issue tracker)

aghorbanmehr's avatar

In the main menu toolbar, click Help > Edit Custom Properties...

Add the following line: idea.max.intellisense.filesize=6000

Restart PHPStorm

2 likes

Please or to participate in this conversation.