【问题标题】:how can i get css class suggestion from a html file in my css file on VScode?如何从 VScode 上的 css 文件中的 html 文件获取 css 类建议?
【发布时间】:2021-07-06 03:53:32
【问题描述】:

假设我有一个这样的 html 文件:

//index.html

<div class="home__data">
<h1 class="home__title">Hi, I'am Alexa</h1>
<h3 class="home__subtitle">Frontend Developer</h3>
<p class="home__description">High level experience in web design, knowledge and producing quality work.</p>
<a href="#" class="button button--flex">
Contact Me <i class="uil uil-message button__icon"></i>
</a>
</div>

现在我想在我的 css 中获得这个 index.html 文件的 css 类 的建议VSCODE

上的文件

您可以考虑 vscode 上的 css intelliSense。如果我们在我的 html 文件上编写 css 类属性,我们会得到在 css 文件中编写的类的建议。我想要这样的东西,但我想在我的 css 文件 中获得用 html 文件编写的类的建议。

//style.css

这可能吗?

【问题讨论】:

  • 您能否更准确地解释您的问题
  • 我已编辑 .我想你现在就会明白这个问题了。
  • 可能对你有帮助:marketplace.visualstudio.com/…
  • 我已经用过了。它给出了关于 html 文件的建议。但我想在我的 css 文件上提出类的建议,比如那个扩展名。

标签: html css visual-studio-code


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 2011-05-25
  • 1970-01-01
  • 2013-01-07
  • 2011-06-02
  • 1970-01-01
  • 2014-05-13
  • 2019-11-15
  • 2021-06-17
相关资源
最近更新 更多