Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to get tailwindcss intellisense to work with react files

//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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #tailwindcss #intellisense #work #react #files
ADD COMMENT
Topic
Name
7+6 =