[英]Intellisense for bootstrap css classes in visual studio code
I want intelissense for bootstrap classes in visual studio code. 我希望intelissense用于Visual Studio代码中的引导程序类。 I tried every soulution given on this platform but didnt succeed.
我尝试了此平台上提供的所有解决方案,但没有成功。 is this feature deleted from visual studio code.
从Visual Studio代码中删除了此功能吗?
I tried following things : 我尝试了以下操作:
Html css support plugin HTML CSS支持插件
Intellisense for html css in visual studio code Visual Studio代码中用于HTML CSS的Intellisense
None of them worked. 他们都没有工作。
I tried editing settings files also, wit these : 我也尝试编辑设置文件,例如:
**{ "css.fileExtensions": [ "css", "scss", "less" ], ** {“ css.fileExtensions”:[“ css”,“ scss”,“少”],
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},**
but no luck. 但没有运气。
Any help would be highly appreciated. 任何帮助将不胜感激。 Thanks
谢谢
PS :I am using visual studio code 1.21.0 PS:我正在使用Visual Studio代码1.21.0
IntelliSense for CSS class names in HTML was right choice. HTML中的CSS类名称的IntelliSense是正确的选择。 The extension scans through your current workspace to find all css clasess You has in the workspace.
该扩展程序会扫描您当前的工作空间,以查找您在工作空间中拥有的所有css clases。
If any of the project inside your workspace has bootstrap.css file then the extension will takes all bootstrap classes. 如果工作空间中的任何项目都有bootstrap.css文件,则扩展名将采用所有bootstrap类。
If You doesn't have bootstrap in the workspace You can install it locally like 如果您在工作空间中没有引导程序,则可以像在本地一样安装它
npm i bootstrap
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.