How to get tailwindcss intellisense to work with react files

61

//in your settings.json add the following below:
{
  // other settings
  "tailwindCSS.includeLanguages": {
    "javascript": "javascript",
    "html": "HTML"
  },
  "editor.quickSuggestions": {
    "strings": true
  }
}

// if it doesnot work after the above is added to settings.json
// delete the "tailwind.config.js" file and create it back by running the below on your terminal
npx tailwindcss init

Comments

Submit
0 Comments