Make VS2008 more perfect for the IntelliSense of jquery syntax-practical tips

Source: Internet
Author: User
Tags comments generator pack
One
Just to see that there have been a quick racer to finish the work, now can be downloaded directly (http://data.lancefisher.net/jquery-1.2.3-intellisense.js) back to use.
That's just a quote.
<script src= "Jquery-1.2.3-intellisense.js" type= "Text/javascript" ></script>

If you need a jquery smart hint in a standalone. js file, add the line to the file

<reference path= "Jquery-1.2.3-intellisense.js"/>

It's OK.

But this JS is uncompressed version of the jqery1.2.3, plus the XML comments, 120K, the development of the line, deployment can change the pack version.

However, it seems that VS2008 to JS IntelliSense still a bit insufficient, such as JS in the overloaded function can not provide a good hint of support ... I hope we can improve again.

Two

In addition, there is a jquery XML comments generator jquery IntelliSense Header generator, which generates jquery's function signatures and XML based on the official jquery XML doc Comments Note that only the function signature is generated here, and there is no specific implementation. If the first way to deploy trouble, then you can use this signature JS, we can put the script all into a separate. js file, and then in JS reference this fake jquery, and in. aspx to refer to the real pack version of jquery.

This generator has a bug, because some of the descriptions of the jquery XML doc have a carriage return, and this generator does not do processing, causing the generated signature JS error.

I fixed the bug, the students need to click here to download. Remember: This generator generates only JQ function signatures and XML comments, which is based on jquery's official XML API Doc, which means that if you have a version of the jquery API Doc coming out, you can just download it back and overwrite the old one.

This generator generates a signature that has a better place to put the comments of overloaded methods together, that is, VS2008 's smart hints can see several different overloads of comments.

Source: cloud-dwelling communities

Below look at the effect chart:

Figure 1

Figure 2

Figure 3

Add, if you modify the script file, and VS2008 Smart tips are not updated in time, you can use the shortcut key ctrl+shift+j to update.

Figure 4


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.