Edit your settings.json as below:

{
  // other settings
  "tailwindCSS.includeLanguages": {
    "javascript": "javascript",
    "html": "HTML"
  },
  "editor.quickSuggestions": {
    "strings": true
  }
}
Answer from chankruze on Stack Overflow
๐ŸŒ
Tailwind CSS
tailwindcss.com โ€บ docs โ€บ editor-setup
Editor setup - Getting started - Tailwind CSS
Cursor is an AI-native code editor with features like context-aware autocomplete and built-in coding agents. Since it supports VS Code extensions, all of the Tailwind CSS tooling you're already familiar with works out of the box โ€“ including our official Tailwind CSS IntelliSense extension and the Prettier plugin for class sorting.
Discussions

VS Code Extension for Formatting Tailwind Classes (JSX/TSX)
Sounds like a great idea! I usually just do npm install -D prettier prettier-plugin-tailwindcss and set up a .prettierrc file in the root folder > add { "plugins": ["prettier-plugin-tailwindcss"] } to said file. But this might be able to fix it. My only issue as of now is when it separates the classes into their own lines, is there an option to turn that off? Also, do I need a selection or can I simply just press Ctrl + Alt + F and it will format the whole .jsx / .tsx file? Support this project. More on reddit.com
๐ŸŒ r/tailwindcss
14
24
March 26, 2025
VSCode Tailwind Class Reorder Extension
Just found this via Google and gave it a spin! Thanks for sorting out my unorganised mess! More on reddit.com
๐ŸŒ r/tailwindcss
24
21
October 7, 2023
๐ŸŒ
DEV Community
dev.to โ€บ kalimahapps โ€บ 4-vscode-extensions-i-use-for-tailwind-2him
4 VSCode extensions I use when developing with Tailwind - DEV Community
June 30, 2023 - The Tailwind Documentation extension ... This extension enables developers to access the Tailwind CSS documentation directly from within the VSCode editor, without having to open a browser or leave the editor....
๐ŸŒ
Reddit
reddit.com โ€บ r/tailwindcss โ€บ vs code extension for formatting tailwind classes (jsx/tsx)
r/tailwindcss on Reddit: VS Code Extension for Formatting Tailwind Classes (JSX/TSX)
March 26, 2025 -

Got into Tailwind last year when developing a personal project and ended up loving it, but disliked the utility class name bloat so I decided to make a VS Code formatter extension to prevent me from going insane. Hoping this helps anyone else out there with the same frustrations.

(Currently only JSX/TSX files supported, but I'm working on potential multi-language support for the next version. The code is open-source and can be found here: GitHub Repo)

Let me know if you find any bugs or issues. And if you liked the extension, please consider a rating/review, a star on the repo, or maybe even a sponsor :) or feel free to just share it around!

Tailwind Formatter Extension Demo

Extension Link: https://marketplace.visualstudio.com/items?itemName=Myhtica.tailwind-formatter

๐ŸŒ
Tailwind CSS
v3.tailwindcss.com โ€บ docs โ€บ editor-setup
Editor Setup - Tailwind CSS
Provides syntax definitions so that Tailwind features are highlighted correctly. Check out the project on GitHub to learn more, or add it to Visual Studio Code to get started now. We maintain an official Prettier plugin for Tailwind CSS that automatically sorts your classes following our recommended class order.
๐ŸŒ
TW Elements
tw-elements.com โ€บ learn โ€บ te-foundations โ€บ tailwind-css โ€บ tailwind-css-intellisense
Tailwind CSS IntelliSense - best VSCode extension
Learn how to install and use Tailwind CSS IntelliSense - a powerful extension for Visual Studio Code with features like autocomplete, syntax highlighting, and linting.
Find elsewhere
๐ŸŒ
GitHub
github.com โ€บ tailwindlabs โ€บ tailwindcss โ€บ discussions โ€บ 15132
[v4] VSCode extension not working when using only @theme directive ยท tailwindlabs/tailwindcss ยท Discussion #15132
November 23, 2024 - In Tailwind v4, if you're going all in on the CSS-first config using @config and @theme, you're technically no longer required to have a tailwind.config.js/ts file โ€” and thatโ€™s great for build simplicity. BUT... ๐Ÿงจ the official VSCode Tailwind IntelliSense extension currently relies on that config file to function properly.
Author ย  tailwindlabs
๐ŸŒ
CodeParrot
codeparrot.ai โ€บ blogs โ€บ best-tailwind-extensions
Best Tailwind Extensions
July 9, 2024 - Whether you are using the Tailwind Chrome extension for real-time editing, the Tailwind VSCode extension for intelligent autocomplete and linting, or the Tailwind Autocomplete extension for streamlined class suggestions, these tools are designed to make your development process more efficient.
๐ŸŒ
GitHub
github.com โ€บ tailwindlabs โ€บ prettier-plugin-tailwindcss
GitHub - tailwindlabs/prettier-plugin-tailwindcss: A Prettier plugin for Tailwind CSS that automatically sorts classes based on our recommended class order. ยท GitHub
Patterns should be enclosed in forward slashes. Note that JS regex literals are not supported with Prettier. This plugin automatically removes unnecessary whitespace between classes to ensure consistent formatting.
Starred by 7.1K users
Forked by 176 users
Languages ย  TypeScript 97.6% | JavaScript 2.4%
๐ŸŒ
Tailwind CSS
v1.tailwindcss.com โ€บ docs โ€บ intellisense
IntelliSense - Tailwind CSS
Tailwind CSS IntelliSense enhances the Tailwind development experience by providing Visual Studio Code users with advanced features such as autocomplete, syntax highlighting, and linting.
๐ŸŒ
Medium
medium.com โ€บ @amalhan43 โ€บ create-vs-code-extension-with-react-typescript-tailwind-b42932adc77b
Create VS Code Extension with React, TypeScript, Tailwind | by Vivek Malhan | Medium
April 18, 2024 - //tailwind.config.js /** @type {import('tailwindcss').Config} */ module.exports = { content: ['./src/**/*.{js,jsx,ts,tsx}'], theme: { extend: {}, }, plugins: [], }
๐ŸŒ
Reddit
reddit.com โ€บ r/tailwindcss โ€บ vscode tailwind class reorder extension
r/tailwindcss on Reddit: VSCode Tailwind Class Reorder Extension
October 7, 2023 -

I like the work that the tailwind team did with the prettier plugin, but for reasons I am not able to use prettier in some of the projects I work on.

That being said, the class reordering feature is pretty much a must for being able to quickly see what classes are on an element at a glance and knowing which classes will override others. Bonuses for minification and compression wins.

I have forked an older VSCode extension that is seemingly no longer maintained and updated it to work in much the same way as the prettier plugin; except that it only rearranges classes and should not touch other parts of your code at all. I am currently using it in JS, TS, and PHP files without issue. Feel free to give it a try if you find yourself in a similar situation to myself.

Tailwind Raw Reorder Extension

edit: added link to post body

๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
vscode-tailwind-magic - Visual Studio Marketplace
Extension for Visual Studio Code - A VSCode extension for Tailwind CSS with advanced features like variant groups, strict mode, attributify mode, aggressive mode, and more.
๐ŸŒ
Flowbite
flowbite.com โ€บ resources
Plugins and Resources for Tailwind CSS
We cannot provide a description for this page right now
๐ŸŒ
DEV Community
dev.to โ€บ jeetvora331 โ€บ must-have-tailwindcss-plugins-fl0
Must Have TailwindCSS Plugins - DEV Community
July 1, 2023 - The Tailwind Documentation extension provides quick access to the official Tailwind CSS documentation. This extension enables developers to access the Tailwind CSS documentation directly from within the VScode editor, without having to open ...
๐ŸŒ
YouTube
youtube.com โ€บ watch
3 must have tailwindCSS VSCode extensions ๐Ÿ”ฅ - YouTube
Improve your tailwindCSS productivity with these three extensionsSections:00:00 - tailwind css intellisense00:47- tailwind documentation01:43 - tailwind fold...
Published ย  April 18, 2023
๐ŸŒ
GitHub
github.com โ€บ githubocto โ€บ tailwind-vscode
GitHub - githubocto/tailwind-vscode
Step right up! This is a plugin for Tailwind that exposes VS Code's theme colors as Tailwind colors โ€” with all of the variants (bg, text, border, etcโ€ฆ) Now you can author styles for your extension's webviews with Tailwind and use the active ...
Starred by 41 users
Forked by 6 users
Languages ย  JavaScript 100.0% | JavaScript 100.0%
๐ŸŒ
Francisco Moretti
franciscomoretti.com โ€บ blog โ€บ tailwind-css-intellisense-vs-code-extension-a-web-developers-best-friend
Boost Productivity with Tailwind CSS VS Code Extension
May 14, 2023 - Improve your web development coding experience with the Tailwind CSS IntelliSense VS Code extension. Autocomplete, hover preview, and more.
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
Tailwind Docs - Visual Studio Marketplace
July 28, 2023 - Extension for Visual Studio Code - Easily access the Tailwind CSS documentation from within Code