【问题标题】:I have problem with VS Code auto complete class names in html我在 html 中遇到 VS Code 自动完成类名的问题
【发布时间】:2021-07-27 11:38:30
【问题描述】:

我对 html 中的 VS Code 自动完成类名称有疑问。当我向元素添加类属性时,它不会显示类名(值)的自动完成选项。 我尝试了很多扩展,也尝试了 .json 文件中的“editor.suggestions”,但都没有解决问题。 所以在html中,当我要使用已经添加的类时,我需要仔细编写,以免出错。 有人可以帮我解决这个问题吗? 顺便说一句,我可以在 css 文件中访问类名自动完成。我的问题是,在 html 文件中,我无法访问之前在 html 文件中定义的类名(自动完成)。

【问题讨论】:

  • 写一个你想要的扩展

标签: html visual-studio-code autocomplete


【解决方案1】:

我遇到了同样的问题,我只需要自动完成类,所以在扩展设置中修复了这个问题,如下所示:

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

我删除了“html”。并且仍然自动完成课程。

希望这对你和我都有帮助。

classes-names-autocompletion-issue

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-02-14
    • 1970-01-01
    • 1970-01-01
    • 2018-06-09
    • 2018-06-16
    • 1970-01-01
    • 1970-01-01
    • 2016-09-02
    相关资源
    最近更新 更多