收录日期:2020/05/27 11:14:54 时间:2009-08-07 15:50:28 标签:jquery,visual-studio,intellisense,visual-web-developer

I'm trying to follow this tutorial - http://www.dotnetcurry.com/ShowArticle.aspx?ID=231&AspxAutoDetectCookieSupport=1

I have both the vsdoc file and the main jQuery script files in the same folder, and when I include the jquery file, I get no intellisense when I start typing $(, but I do get intellisense when I include the jquery vsdoc file instead.

Any ideas? I'm expecting vs to automatically load the intellisense from the vsdoc.

Thanks for any help!

Check you have the hotfix for visual studio installed.

You can get it here, along with instructions on how to do it:

http://blogs.msdn.com/webdevtools/archive/2008/11/07/hotfix-to-enable-vsdoc-js-intellisense-doc-files-is-now-available.aspx

all you need to do is make sure you reference the vsdoc file at the top of your custom scripts page:

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

since the vsdoc is only needed for development, i keep it somewhere on my machine locally and just reference it in every new project i make. there's no need to include it in your project. just make sure your reference path is accurate.

You'll need to include the jquery file and reference the vsdoc file.