Search code examples
angulartwitter-bootstrapintellisensevisual-studio-2019font-awesome-4

Is there a way to get Intellisense for Bootstrap and FontAwsome in Angular project opened as a folder in Visual Studio 2019


I am working on an Angular Project in Visual Studio 2019 I've opened as a folder. Everything is working very nicely. Intellisense for TypeScript/JavaScript classes and Angular. And when you roll over a method you get the description and return value and so forth. Is there a way to get the intellisense working for BootStrap and Font Awsome? I know in a .Net Cor project you have to do something with a _view[something] file. Can't remember. I've been out on disablitily for a year and just starting to get back to studying. Figured I'd use the time to finally just sit down here and learn Angular once and for all.


Solution

  • I had the same problem, and I noticed that styles.css also wasn't included in Intellisense.

    Instead of working in a folder, I had to:

    1. Create a new blank solution (Create a new project > Search for "Blank Solution")
    2. Right click the solution and click "Add > Existing Web Site...".
    3. Browse to the folder containing the Angular folder and click "Open"

    IntelliSense builds straight away in the component HTML now.

    IntelliSense from Bootstrap classes

    I have read that including node_modules in the project makes searching really slow, but if I exclude node_modules by making it a hidden folder, IntelliSense stops working for bootstrap CSS files again. Styles.css continues to show up, though.

    Oh, also I updated Visual Studio to 16.4.5.