问题
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
- Open your web application solution
- Open Package Manager Console from Tools-> Library Package Manager, NuGet add latest jQuery versions to your project
- Type "PM> Install-Package jQuery" in console
- Drag and drop your jQuery script file from the Solution Explorer window onto the javascript editor window
- 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