有没有办法将Angular项目中的Bootstrap和FontAwsome的Intellisense作为Visual Studio 2019中的文件夹打开 [英] Is there a way to get Intellisense for Bootstrap and FontAwsome in Angular project opened as a folder in Visual Studio 2019

查看:123
本文介绍了有没有办法将Angular项目中的Bootstrap和FontAwsome的Intellisense作为Visual Studio 2019中的文件夹打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Visual Studio 2019的Angular项目中工作,我已将其打开为文件夹.一切工作都很好.用于TypeScript/JavaScript类和Angular的Intellisense.当您将鼠标悬停在一个方法上时,您会得到描述和返回值等.有没有办法使智能感知在BootStrap和Font Awsome中起作用?我知道在.Net Cor项目中,您必须对_view [something]文件进行操作.不记得了.我已经呆了一年,然后才开始重新学习.我想我会花时间终于坐在这里,一劳永逸地学习Angular.

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.

推荐答案

我遇到了同样的问题,并且我注意到styles.css也没有包含在Intellisense中.

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. 创建一个新的空白解决方案(创建一个新项目>搜索空白解决方案")
  2. 右键单击解决方案,然后单击添加>现有网站...".
  3. 浏览到包含Angular文件夹的文件夹,然后单击打开"

IntelliSense现在立即在组件HTML中构建.

IntelliSense builds straight away in the component HTML now.

我已经了解到,在项目中包含node_modules会使搜索速度变慢,但是如果我通过将node_modules设置为隐藏文件夹来排除它,则IntelliSense会再次停止引导CSS文件的工作.不过,Styles.css仍会显示.

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.

哦,我也将Visual Studio更新到了16.4.5.

Oh, also I updated Visual Studio to 16.4.5.

这篇关于有没有办法将Angular项目中的Bootstrap和FontAwsome的Intellisense作为Visual Studio 2019中的文件夹打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆