Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 466
Jochem Gruter Avatar asked Jul 10 '26 11:07

Jochem Gruter


2 Answers

I solved by downloading the tailwindcss library.

setting

download

like image 99
habibun Avatar answered Jul 12 '26 04:07

habibun


Just had this issue with a new Vue project, solved it by going to:

Settings -> Languages & Frameworks -> Style Sheets -> Tailwind CSS

And adding the following to the "includeLanguages" section:

      "scss": "scss",
      "html": "html",
      "javascript": "javascript",
      "typescript": "typescript",
      "css": "css",
      "vue": "vue",
      "sass": "sass",
      "twig": "twig"

Seems like it doesnt include all files and languages by default.

like image 34
Mikepote Avatar answered Jul 12 '26 03:07

Mikepote



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!