简体   繁体   中英

jQuery Intellisense in VS2012

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

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.

您可以在页面中引用Jquery intellisense文件(jquery-1.12.4.intellisense.js),然后它将开始工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM