Class autocompletion
IntelliSense
If you’re using VSCode or JetBrains IDEs (WebStorm, PHPStorm, etc.), you can set up class autocompletion.
Benefits:
Autocompletion when typing in the
class
attribute.Autocompletion in objects by prefixing them with
/*tw*/
.Autocompletion inside the
config
prop.
Example of an SFC with IntelliSense:
VSCode
Install Tailwind CSS IntelliSense extension.
Add the following extension configuration to your VSCode settings.
.vscode/settings.json
JetBrains IDEs
Ensure the Tailwind CSS IntelliSense extension is installed in your IDE. If it’s not, install it.
Add the following extension configuration below in
Settings
>Languages & Frameworks
>Style Sheets
>Tailwind CSS
.
Last updated