nurkka Posted October 13 Share Posted October 13 Does anybody know, how to get TailwindCSS suggestions/autocomplete to work within LATTE files in PHPStorm? I have the LATTE and TailwindCSS plugins, running nodejs etc, and I've tried really hard, but it still refuses to work ... Link to comment Share on other sites More sharing options...
Sanyaissues Posted October 13 Share Posted October 13 I'm VScode user and this on the settings.json does the trick: "tailwindCSS.includeLanguages": { "latte": "php" }, Guessing here, try something like https://www.jetbrains.com/help/phpstorm/tailwind-css.html#ws_css_tailwind_complete_classes_custom_context //or maybe "latte": "php" "includeLanguages": { "latte": "html" }, 3 Link to comment Share on other sites More sharing options...
nurkka Posted October 13 Author Share Posted October 13 Thanks @Sanyaissues , I tried that before, but it didn't work for me. Maybe my installation of PHPStorm has issues ... Link to comment Share on other sites More sharing options...
Sanyaissues Posted October 14 Share Posted October 14 @nurkkaa month ago my intellisense stop the autocomplete and I solved by rolling back the extension version. Again it was VScode, but maybe is this bug related to PHPStorm? https://github.com/tailwindlabs/tailwindcss-intellisense/issues/1033#issuecomment-2362876115 I discovered the issue by looking at the VScode Tailwind Css Intellisense Output, instead of a successfully build I was getting: [GLOBAL] No matching project for document Link to comment Share on other sites More sharing options...
nurkka Posted October 14 Author Share Posted October 14 At least it's also not working in PHP and HTML files, so my installation/plugin/whatever must be broken. I am getting no error messages out of PHPStorm. I also tried several different nodejs versions via nvm, but that also didn't work. I don't know how to downgrade the tailwindcss plugin, so I'll leave it there – perhaps the feature will be back with an update sometime. Thank you @Sanyaissues Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now