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.

1

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

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

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

0

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

0

>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

请先登录再写评论。