I recently joined my university’s CS group and started learning Tailwind using the Phoenix framework. To practice, I cloned a repository of an ongoing project. After a few days, I decided to create a new personal Phoenix project to experiment more.
However, when I started writing my first Tailwind class, I noticed that autocomplete wasn’t working. I’m aware that my VS Code sometimes behaves oddly (for example, when writing Haskell, it doesn’t underline code with blue lines or show data type tooltips ) but I hadn’t worried about it because it still worked well enough. With Tailwind, though, this lack of autocomplete is really frustrating.
I’ve tried reinstalling VS Code, cleaning out my settings, and checking for extension conflicts, but nothing has fixed the issue. Interestingly, when I open the original repository I cloned, Tailwind autocomplete works perfectly. I’ve also tried cloning similar projects, but autocomplete doesn’t work in them either.
I’m stuck. My friends and I spent three hours trying to solve it, and this is my only way to figure out what’s going wrong.

