How to fix PHPStorm not autocompleting Tailwind CSS classes
When the CSS file that Tailwind generates gets too big, PHPStorm will stop indexing it.
If the file isn't indexed, autocompletion won't work for CSS classes.
This problem is common when adding extra variants, or when using the
If your CSS classes aren't being autocompleted, try opening the CSS file that Tailwind generates in your
You should see a yellow banner that says: "The file size (4.03 MB) exceeds configured limit (2.56 MB). Code insight features are not available".
If you see this yellow banner, you can fix the problem by doing the following:
In the main menu toolbar, click
Help > Edit Custom Properties...
Add the following line:
- Restart PHPStorm
This custom property bumps the configured limit from the default 2500 KB to 6000 KB. After restarting your IDE, and after a few seconds of indexing, autocompletion should be working again.
I've spent an unreasonable amount of time making the perfect deployment script for Laravel.
Check it out