Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 354
sadati Avatar asked Nov 13 '12 10:11

sadati


2 Answers

  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
like image 156
S B Avatar answered Nov 17 '22 09:11

S B


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.

like image 5
BenjaminPaul Avatar answered Nov 17 '22 10:11

BenjaminPaul