Skip to content

Instantly share code, notes, and snippets.

@SubhajitSK
Created February 21, 2024 20:26
Show Gist options
  • Save SubhajitSK/a505533d595738880f924b0b73406d07 to your computer and use it in GitHub Desktop.
Save SubhajitSK/a505533d595738880f924b0b73406d07 to your computer and use it in GitHub Desktop.
How to Fix Tailwind CSS IntelliSense Issues in ReactJS Project

If you're facing issues with Tailwind CSS IntelliSense not providing suggestions in your ReactJS project, follow these steps to adjust your workspace settings:

  1. Open your code editor and access the command palette (you can typically do this by pressing Ctrl + Shift + P or Cmd + Shift + P).
  2. Search for settings.json in the command palette and select the option for "Preferences: Open Workspace Settings (JSON)" to open the workspace settings file in JSON format. Alt Text
  3. In the opened settings.json file, paste the following code:
{
    "tailwindCSS.includeLanguages": {
        "javascript": "javascript",
        "html": "HTML"
    },
    "editor.quickSuggestions": {
        "strings": true
    }
}
  1. Save the file.

This configuration ensures that Tailwind CSS IntelliSense is activated for JavaScript and HTML files within your workspace. The "editor.quickSuggestions" setting specifically enables quick suggestions, including strings.

Now, you should experience improved Tailwind CSS IntelliSense functionality in your ReactJS project.

Remember to restart your code editor or reload the workspace for the changes to take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment