0

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.

In other projects

On a specific project

2
  • I'm not very familiar with Phoenix projects. Could you expand the question with more details? For example, is only one project opened at a time in VSCode? It's a common practice, especially in monorepo setups, for people to open the entire monorepo and expect all 3-4 projects within it to work simultaneously, which is usually "impossible" by default without any other configuration. Commented Nov 23 at 13:58
  • Although TailwindCSS IntelliSense provides project management settings, it is still better practice to load each project as a separate VSCode workspace. Reference: VSCode Tailwind CSS Intellisense autocompletion and suggestions not working after installing Tailwind v4 and stackoverflow.com/a/79808734/15167500 Commented Nov 23 at 13:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.