Visual Studio Code - empty CSS ruleset

1

When I create a class in HTML and go to CSS and put ".alguma_Class {}" the css file does not recognize this class in the automatic search and only works if I type everything in the hand and only after that it starts appearing in the automatic search and without speaking when I type the class appears the error that ta in the print. It was not like that, it was like that. Can anyone tell me why?

    
asked by anonymous 29.10.2018 / 22:42

1 answer

1

About in .CSS file you can not auto complete a class that only exists in HTML that is documented here: link

a>

I think you should have confused yourself, because as you can see in GitHub of the project this feature has not yet been developed ...

Your problem with " erro " is that you are not putting any property within the class. In short, you have a class .some-class { vazia } that has no property inside of alerta .

Example of the same error in the console in the% VS Code%

InVSCode,youcandisablethistypeofalertbygoingtoProblemsandsettingpreferencesforCSSfilesasshownbelow.

GotoSettings,inthesearchbarsearchfor"empt" locate within Settings the topic Extensions and places CSS

SeethatafteradjustingforIgnoretheerrornolongerappearsintheIgnoreorCSSfile

    
29.10.2018 / 23:49