Reputation: 1
I used a CSS class in HTML, but this class is not defined yet
Then I tried to define this class in CSS. However, vscode cannot suggest me an already existing class.
I'm new in vs code - please suggest me extension for this (I tried a lot of extensions but never found a working)
Update:
In an Atom it works, please check: in HTML: in HTML And in CSS in CSS
Upvotes: 0
Views: 197
Reputation: 183094
Assuming you declare the class name first in your css/scss file, then in an html file you can get intellisense for those class names with the extension class completion in html.
Upvotes: 0
Reputation: 53582
You are confusing things here. CSS class completion works the other way around. You define the class in your CSS and then vscode will offer that as candidate when you write your HTML tag and assign it a class.
Upvotes: 1