Angular 上 html 文件中的 bootstrap 类 没有智能感知 - visual studio 2017

No intellisense for bootstrap classes in html files on Angular - visual studio 2017

在 Visual Studio 2017 中使用 Angular 项目(不是 VS 代码)如何在 html 文件中为 bootstrap 类 启用智能感知,我尝试使用未缩小的 css:

将其添加到 angular-cli.json 文件中
"styles": [
        "styles.css",
        "../node_modules/bootstrap/dist/css/bootstrap.css"
      ],

也尝试使用 styles.css

@import "../node_modules/bootstrap/dist/css/bootstrap.css"

不工作...

非常感谢任何帮助

谢谢

在使用像Angular这样的框架时,我们可以使用npm、bower安装依赖项,并将非缩小的css文件添加到项目中,然后我们可以发现intellisense按预期工作,请检查 this doc.