Intellisense doesn't work for JavaScript in Visual Studio 2012

后端 未结 8 1524
我在风中等你
我在风中等你 2020-11-28 01:02

I have a clean, out-of-the-box installation of Visual Studio 2012 Web Developer Express and for some reason the support for JavaScript (both jQuery, jQuery UI and

8条回答
  •  眼角桃花
    2020-11-28 01:46

    To add jQuery and its intellisense files to an active/opened project/website

    In Visual Studio 2012, do the following:

    Open menu Tools -> Library Packet Manager -> Manage Nuget packages for solution. Click the Online field/selector in the very right side of the dialog box. Find jQuery in the middle list, click it, and click Install.

    Observe that the jQuery script files are now inserted into your project by looking at the Solution Explorer panel. You should see jquery-1.x.x.js (where x here is are placeholders for the actual version numbers. Say jquery-1.9.0.js is a concrete example).

    Also, observe that there is now a Jquery-1.9.0.intellisense.js file there. Neat ai? :-)

    But bear in mind, that if you create a new website in Visual Studio and choose ASP:NET Web forms site (as opposed to an Empty site) the web forms site will already have jQuery 1.7.1 in there).

提交回复
热议问题