Visual Studio 2015 jQuery intellisense无法正常工作 [英] Visual Studio 2015 jQuery intellisense not working

查看:175
本文介绍了Visual Studio 2015 jQuery intellisense无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我创建了一个Visual Studio 2015空ASP.net Core应用程序,并尝试使用Bower添加jQuery,但是它没有获得jQuery的智能提示.确定准确的完成列表..." JavaScript intellisense仍然可以正常工作,只是输入$之后无法获得通常的intellisense.

So I created a Visual Studio 2015 empty ASP.net Core application and tried to add jQuery using bower, but it isn't picking up the intellisense for jQuery... It is showing a warning saying that "Intellisense was unable to determine an accurate completion list..." JavaScript intellisense is still working just not the usual intellisense I would get after typing $.

我在凉亭设置中使用了jquery 3.1.1,并读取了我需要降级的信息.还是这样吗?

I am using jquery 3.1.1 in bower set up and read that I need to downgrade. Is that still the case?

推荐答案

我正在使用VS 2015和MVC 5,并且遇到了此问题.我尝试了以上所有方法,但没有任何效果.

I'm using VS 2015 and MVC 5 and was having this issue. I tried all the above and nothing worked.

然后我进入

工具->选项-> JavaScript-> Intellisense->参考

Tool -> Options -> JavaScript -> Intellisense -> References

并添加了

jquery-1.9.1.intellisense.js

jquery-1.9.1.intellisense.js

文件.值得一提的是,我将此文件从本地项目复制到了C:\Program Files(x86)\Microsoft Visual Studio 14.0\Javascript\References folder

file. Worth mentioning I copied this file from my local project to the C:\Program Files(x86)\Microsoft Visual Studio 14.0\Javascript\References folder

我重新启动VS并回到视图中,但对jQuery仍然没有智能感知.

I restarted VS and went back into my view and still didn't have intellisense for jQuery.

然后,在脚本部分上方的视图中,我将我的jquery引用从.min副本更改为完整副本,并且intellisense立即开始起作用

Then in my view above my script section I changed my jquery reference from the .min copy to the full and the intellisense started to work right away

这篇关于Visual Studio 2015 jQuery intellisense无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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