autocompletephpstormtailwind-css

TailwindCSS autocompletion in PhpStorm not working


I just updated PhpStorm to version 2020.3 which now supports autocompletion for Tailwind CSS. But in my new updated version it isn't working and can't figure out why.

In html, blade and css files, there is no autocompletion for Tailwind CSS.

Do I have this enable somewhere? Why isn't it working?


Solution

  • Looks like there is an bug when using npm installer and when you are using version npm:@tailwindcss/postcss7-compat@^2.0.1 of tailwind.

    source https://youtrack.jetbrains.com/issue/WEB-48473

    My solution: delete node_modules and use yarn install