DEV Community

Jaime Rios
Jaime Rios

Posted on • Edited on

3

How to enable Tailwind Intellisense on TSX Files

Intro

I've started to experiment with Tailwind, so while setting up my environment when I had this issue, so here is how to setup intellisense on TSX files in nutshell.

Step 1.

Before getting setting up Intellisense, you will need to install Tailwind in your project.

Step 2.

Install the Tailwind CSS IntelliSense extension for Visual Studio Code.

Step 3.

If you don't have it already, setup a tailwind.config.js file in your root folder by running:

npx tailwindcss init
Enter fullscreen mode Exit fullscreen mode

Step 4.

Go to VS Code settings, and add the following configuration:

// settings.js
// ...
"tailwindCSS.includeLanguages": { 
  "plaintext": "javascript" 
}
Enter fullscreen mode Exit fullscreen mode

Step 5.

Reload VS Code. My favorite way to do it is to press CMD + P and select Reload Window.

That's all folks.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay