File: introducing-linting-for-tailwindcss-intellisense.md | Updated: 11/15/2025
âKCtrl KDocs Blog Showcase Sponsor Plus
June 23, 2020

Brad Cornes
Today weâre releasing a new version of the Tailwind CSS IntelliSense extension for Visual Studio Code that adds Tailwind-specific linting to both your CSS and your markup.
Tailwind already detects CSS errors, for example when you mistype a screen name in the @screen directive. The linting feature for Tailwind CSS IntelliSense surfaces these errors and displays them in context, directly inside your editor. The linter will validate your @tailwind, @screen, @variants and @apply directives, as well as any theme function calls:

Catching conflicts in your HTML
There is one more lint rule which analyses class lists in your template files and highlights any instances where utilities seem to be in conflict. For example you probably didnât intend to have mt-4 and mt-6 in the same class list!

To make it as easy as possible to fix any issues, all of the lint rules have their own "quick fixes" which can be triggered directly within Visual Studio Code. If you accidentally typed @screen small instead of @screen sm, the editor can automatically replace small with sm for you!
As well as simple text replacements thereâs also some more interesting quick fixes for the more complex lint rules. Take a look at how the extension can automatically refactor an invalid @apply directive:
We think youâll love the new lint feature, but if you donât, or you just want to tweak some behavior, weâve got you covered. You can decide how each rule violation is treated: is it an error, or just a warning, or do you want to ignore the rule altogether? If you really want to you can disable linting entirely using the new tailwindCSS.validate setting.
Check out the extension readme for more details about configuring the lint rules to suit your workflow.
Linting is available now in v0.4.0 of Tailwind CSS IntelliSense! If you already have the extension you may need to reload Visual Studio Code to get the update, and if you donât you can install it via the extension marketplace
.
This is the very first iteration of this feature, and weâd love to hear your feedback! Do you have an idea for a new lint rule? Let us know!
Want to talk about this post? Discuss this on GitHub â
Subscribe
Copyright © 2025 Tailwind Labs Inc.·Trademark Policy