简体   繁体   中英

I have problem with VS Code auto complete class names in html

I have problem with VS Code auto complete classes names in html. When I add a class attribute to an element, it does not show the auto complete options for class names (value). I have tried many extensions and also tried "editor.suggestions" in.json file, but none of them solved the problem. So in html, when I want to use a class that I have already added I need to write it carefully so that it does not be wrong. Could anyone help me with this problem, please? By the way, I can access class name auto complete in css file. My problem is that in an html file, I do not access my class names (auto complete) which are defined previously in the html file.

I had the same issue, i needed only the classes auto-complete, so fixed the problem in the extension settings as below:

**/*.{css,html} to **/*.{css}

I removed the 'html'. And still autocomplete the classes.

Hope this helped you well as me.

classes-names-autocompletion-issue

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM