How do I get JavaScript Intellisense from vsdoc file references in WebMatrix 2 Beta?

后端 未结 1 917
死守一世寂寞
死守一世寂寞 2021-01-03 09:20

I copied a JavaScript file over from Visual Studio to a new WebMatrix 2 Beta project only to find out the vsdoc file wasn\'t being used for JavaScript Intellisense.



        
相关标签:
1条回答
  • 2021-01-03 09:56

    Since they are currently taking user input on desired features in WebMatrix 2 Beta, I pitched support for vsdoc JavaScript file references. The WebMatrix team responded that it was already supported but the syntax was different until they change it to be more consistent with the current Visual Studio syntax. It is only different by one word.

    Works in WebMatrix 2 Beta (note "file" instead of "path")

    /// <reference file="jquery-1.6.4-vsdoc.js" />
    

    enter image description here

    Note:

    While the "path" syntax doesn't work in WebMatrix 2 Beta yet, the WebMatrix team seemed intent on supporting it going forward for consistency with Visual Studio. If, for some reason, someone is using the same *vsdoc.js file between a WebMatrix 2 Beta project and a Visual Studio project (or managing a a WebMatrix user's project in Visual Studio), you could simply cover both bases. The WebMatrix "file" syntax does not appear to be supported by Visual Studio 2010.

    /// <reference path="jquery-1.6.4-vsdoc.js" />
    /// <reference file="jquery-1.6.4-vsdoc.js" />
    

    Additional Note:

    WebMatrix 2 Beta does not appear to support the new paragraph-sectioned (<para>) vsdoc files.

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