Visual Studio 2015 jQuery intellisense not working

做~自己de王妃 提交于 2019-12-18 18:10:10

问题


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 $.

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


回答1:


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

I then when into

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

and added the

jquery-1.9.1.intellisense.js

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

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

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




回答2:


  1. Close your Visual Studio and restart again to check if it works or not.
  2. If not work, restart your laptop.
  3. If still not work, re-install your Visual Studio.


来源:https://stackoverflow.com/questions/41089146/visual-studio-2015-jquery-intellisense-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!