Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve CSS intellisense for VSCode not working?

Well, this is embarrassing, basically, the CSS Intellisense stopped working out of the blank, not sure if I can relate it with the installation of TailWind Intelissense extension, interestingly it works on SCSS files, but if I try it in a vanilla HTML + CSS project it does not work. I am using Fedora 35. I already tried restarting the editor as recommended on the official website.

like image 684
Cristian Diaz Avatar asked Dec 09 '25 11:12

Cristian Diaz


2 Answers

I had the same issue. So, I solved it by adding

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

to my my settings.json file. Don't know is it is going to help you, but anyway. Good luck!

like image 183
yaromir-zhuavsky Avatar answered Dec 12 '25 02:12

yaromir-zhuavsky


When I'm using a basic style.css file, even after adding "postcss": "css" in "emmet.includeLanguages":{} CSS Intellisense still doesn't work.

Disabling the postcss VSCode extension allows CSS Intellisense to work properly for me.

like image 44
Rakib Avatar answered Dec 12 '25 03:12

Rakib



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!