Visual Studio 2015 jQuery intellisense not working

前端 未结 2 1934
猫巷女王i
猫巷女王i 2021-01-03 14:13

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

2条回答
  •  北海茫月
    2021-01-03 14:37

    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

提交回复
热议问题