简体   繁体   English

如何从VS Code中的CSS文件中的HTML中检测类名称?

[英]How to detect class names from html in css files in VS Code?

I'm trying to switch over from WebStorm to VS Code, but this problem is troubling me. 我正在尝试从WebStorm切换到VS Code,但是这个问题困扰着我。 In WebStrom, if a css file is linked in html, class names can be detected from html as show in the pic below, but this feature is not supported in VS Code. 在WebStrom中,如果css文件以html链接,则可以从html中检测到类名,如下图所示,但是VS Code不支持此功能。 Is there any extension in vscode that can add this feature for vscode and solve this problem? vscode中是否有任何扩展可以为vscode添加此功能并解决此问题? thanks! 谢谢!

webstorm webstorm
vscode vscode

将此HTML很好地扩展为CSS自动完成功能

This extension can solve your problem. 此扩展程序可以解决您的问题。 As far as I am concerned, it is not supported natively. 就我而言,它本身不受支持。
IntelliSense for CSS class names in HTML IntelliSense HTML中的CSS类名称

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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