How to use intellisense.js file that came with jQuery NuGet package 1.8.0 instead of vsdoc.js?

前端 未结 2 958
北荒
北荒 2020-12-25 12:38

I just found that the lastest version (1.8.0) of jQuery NuGet package include the new type of vsdoc file that I cannot find any documentation. The intellisense file just onl

相关标签:
2条回答
  • 2020-12-25 13:11

    In JavaScript file, the JavaScript language service provides IntelliSense features for third-party JavaScript libraries that are added to a project. For most libraries, statement completion is provided automatically by the language service. The following illustration shows an example of statement completion:

    enter image description here

    In Visual Studio 2012, Visual Studio will automatically find ".intellisense.js" file and use it like old vsdoc file without writing real JavaScript structure.

    enter image description here

    For additional information, please look at the following link.

    Extending JavaScript IntelliSense

    0 讨论(0)
  • 2020-12-25 13:17

    you don't need to do anything. you just need to install or update jquery package from nuget by using

    Install-Package jQuery
    

    or

    Update-Package jQuery
    

    and then the intellisense and documentation is available everywhere.

    you don't need vsdoc anymore because the new file jquery-1.8.0.intellisense is more organized.

    There is also a great video by Scott Hanselman at the following url which shows the new features of JavaScript editor in visual studio 2012 http://www.asp.net/vnext/overview/videos/visual-studio-2012-javascript-editor

    0 讨论(0)
提交回复
热议问题