0

I recently start using tailwind CSS in my react app. Tailwind work when I use its class in elements. But Intellisense plugins doesn't suggest classes when I start typing. I see other people have same problem and saw the solution others explain but after all I can't fix this.

Alos it doesn't work on html files to when I create a .html file

I used tilwind installation document on https://tailwindcss.com/docs/guides/create-react-app to install tailwind.


I play around with some setting and configuration that others said like:

"tailwindCSS.includeLanguages": { "javascriptreact": "html", "typescriptreact": "html", "plaintext": "html" },

"emmet.triggerExpansionOnTab": true,

"tailwindCSS.emmetCompletions": true,

But after all it still doesn't work and I don't know what else I should do. If someone could give me a hand with this problem. Thanks

1
  • One of the problem is opening a folder/select folder that doesn't contain tailwind.config.js. e.g. src folder. Commented Feb 10, 2022 at 10:42

1 Answer 1

0

Try adding this to vscode setting.json:

"editor.quickSuggestions": { "strings": true }

That worked for me as mine seemed to have issues with auto suggestions while typing in strings.

Sign up to request clarification or add additional context in comments.

Comments

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.