JustCurious
JustCurious

Reputation: 183

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

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

Upvotes: 1

Views: 1622

Answers (2)

JamesW
JamesW

Reputation: 101

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.

Upvotes: 0

Sara Liu - MSFT
Sara Liu - MSFT

Reputation: 6218

While working with frameworks like Angular, we can install dependencies using npm, bower, and add the non-minified css file into project, then we can find the intellisense works as expected, please check this doc.

Upvotes: 1

Related Questions