CSS class not identified in button elements Follow
Webstorm doesn't identify/autocomplete CSS class in button elements. All other elements work fine. Am I missing something
It suggests html element names instead. Or something else. But no CSS classes.
Please sign in to leave a comment.
Hi there,
Looking at the colors ... it looks like you may have injected some language (HTML most likely) inside the "class" attribute of the "button" element.
Please post a screenshot of the "Settings/Preferences | Editor | Language Injections" -- mainly interested in entries with "Project" and "IDE" values in the Scope column.
You must have some language (HTML?) injected in
<button class="">
attribute. Please check language injections with IDE and Project scope in Preferences | Editor | Language Injections.Wow. Fixed it. I had injected html inside it.🙈 Thanks.
I have messed up a lot of settings. How can I revert everything to default?
>I have messed up a lot of settings. How can I revert everything to default?
Try File | Manage IDE Settings | Restore Default Settings...
Or you can delete config files manually while IDE is closed (to start from very scratch): https://www.jetbrains.com/help/webstorm/tuning-the-ide.html#default-dirs