Intellisense doesn't work for JavaScript in Visual Studio 2012

后端 未结 8 1536
我在风中等你
我在风中等你 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:34

    What ended up working for me was to reorder the list in _references.js. I had almost 150 lines in there due to a bunch of plugins imported into the project, and jQuery was near the bottom. When I moved its reference to the top, my intellisense started working again.

    What it looks like:

    /// 
    /// 
    /// 
    /// 
    ... more reference lines

    Note the reference is to the jquery-{version}.js file. There is also a file installed with the Nuget package in the same directory named jquery-{version}.intelliense.js, which I assume is what is used. Hope that helps.

提交回复
热议问题