CSS class not identified in button elements

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.

5 comments
Comment actions Permalink

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.

2
Comment actions Permalink

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.

2
Comment actions Permalink

Wow. Fixed it. I had injected html inside it.🙈 Thanks.

0
Comment actions Permalink

I have messed up a lot of settings. How can I revert everything to default?

0
Comment actions Permalink

>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

2

Please sign in to leave a comment.