Skip to content

[css] propose class names and ids that exist in HTML #28442

@zhiyuxia

Description

@zhiyuxia

When write my HTML first, I add a class name that I have not yet created in my CSS, for example div class="vscode" /div . When I go to my CSS file and begin typing ".v" there is no autocomplete for ".vscode". but in the webstorm ,there is a hint, it's really great.

there are some extensions to auto-complete class name, but all of them (at least I can't find one)offer the suggestions based on the css files instead of html files .

someone has the same problem.

https://stackoverflow.com/questions/40760014/vs-code-html-css-classes-scoping?rq=1

https://stackoverflow.com/questions/41817375/vscode-autocomplete-in-css-a-class-first-created-in-your-html-tag-extension-fo?rq=1

  • VSCode Version: last version
  • OS Version: last version

Metadata

Metadata

Assignees

Labels

css-less-scssIssues and items concerning CSS,Less,SCSS stylingfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions