如何从 VScode 上 css 文件中的 html 文件获取 css 类建议?

Rai*_*man 7 html css visual-studio-code

假设我有一个像这样的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>
Run Code Online (Sandbox Code Playgroud)

现在我想在VSCODE上的 css 文件中获取此index.html文件的 css 类的建议

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

//style.css
Run Code Online (Sandbox Code Playgroud)

那可能吗?