jQuery’s smart tips in vs2008
1 Install VS2008SP1 patch
Make sure that your vs2008 has been patched with sp1. In the help of vs2008, if sp1 is installed, "version 3.5 sp1" will appear. If it is not installed, of course there will only be "version 3.5".
If you don’t have it installed, you can download sp1 here.
2 Install VS 2008 Patch KB958502 to support "-vsdoc.js" Intellisense files.
This patch will cause Visual Studio to be referenced in a JavaScript library , look for the existence of an optional "-vsdoc.js" file, and if so, use it to drive the JavaScript intellisense engine. These annotated "-vsdoc.js" files can contain XML comments that provide help documentation for JavaScript methods, as well as additional code intellisense hints for dynamic JavaScript signatures that cannot be automatically inferred.
You can learn more about the patch "here". You can download the patch for free "here".
3 You must quote the vsdoc version of the jquery library
Copy jquery-1.4.2.js and jquery-1.4.2-vsdoc.js to the same file directory
Quote jQuery file
You can enter $(). Try it and see if a smart prompt appears!
If the smart prompt does not appear, ctrl shift j to update it! Also pay attention to whether there are any errors in the JavaScript you wrote before. If there are errors, there will be no smart prompts, and the error list will give prompts after ctrl shift j.
jQuery’s smart tips for js files
Add the following code in the js file:
///
Then ctrl shift j to update, then $(). to see if a smart prompt appears!
I implemented jQuery’s smart prompts in VS2008 and js files through the above method! !