Using Angular project in Visual Studio 2017 (not VS code) how can I enable intelliSense for bootstrap classes inside the html files, I tried to add it in the angular-cli.json
file using the unminified css:
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.css"
],
Also tried using the styles.css
@import "../node_modules/bootstrap/dist/css/bootstrap.css"
Not Working...
Any help is very appreciated
Thanks
在使用 Angular 等框架时,我们可以使用 npm、bower 安装依赖项,并将未压缩的 css 文件添加到项目中,然后我们可以发现智能感知按预期工作,请查看此文档。
You can install VSCode extension IntelliSense for CSS class names in HTML , even though there is a small glitch in this extension. You have to type the whole tag , move to another line and come back to class name.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.