jQuery Intellisense in VS2012

时光毁灭记忆、已成空白 提交于 2019-12-10 03:07:18

问题


How can I add a plugin into Visual Studio 2012 to work with jQuery syntax in intellisense on visual studio?

Please don't give me link of other site, just give a solution that you did and worked fine.


回答1:


  1. Install NuGet in Visual Studio Extension Manager
  2. Open your web application solution
  3. Open Package Manager Console from Tools-> Library Package Manager, NuGet add latest jQuery versions to your project
  4. Type "PM> Install-Package jQuery" in console
  5. Drag and drop your jQuery script file from the Solution Explorer window onto the javascript editor window
  6. Enjoy jQuery intellisense



回答2:


Visual Studio 2012 provides JQuery intellisence out of the box without the need for additional plugins... to get this functionality, simply drag the _references.js file from with teh scripts folder into the .js file you are working on.. it will place a tag into the top of the file for you and provide intellisense.

Im presuming you are using as ASP.NET / MVC project template.




回答3:


You can reference Jquery intellisense file (jquery-1.12.4.intellisense.js) in your page and then it will start working.



来源:https://stackoverflow.com/questions/13359090/jquery-intellisense-in-vs2012

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