vs. JS IntelliSense

Source: Internet
Author: User

Reference http://blog.csdn.net/lee576/article/details/2050991

For IntelliSense JS in VS, XML tags are required for JS functions or objects

As below, please feel yourself

1     function (company) {2         // /<summary> 3         // /Get all ships 4         // /</summary> 5         // /<param name= "Company" type= "String" optional= "true" > Id</param> 6     };

Above, name corresponds to the name of the parameter, type indicates the kind, optional indicates whether the optional parameter

Of course, you can also use traditional annotations, but you cannot have parameter descriptions

// Description function Test () {};

However, for VS to be aware, other settings are needed,

If you are in HTML, use the

<type= "Text/javascript"  src= ": /tt.js "></script>

If you are sensing b.js in A.js, use the

// /<reference path= "b.js" name= "MicrosoftAjax.js"/>

Where path refers to the path of the B.js, name is the client library of the ASP. Name and path do not appear at the same time,

Put the a.js head.

If you want to implement the same folding functionality as C # using the Advanced JavaScript outlining tool, you can find it in VS, tools-extensions and updates, using the method

// #region Notes function A () {} // #endregion

This way, there will be a folding symbol on the left side of VS

At the same time, if you want to implement, the above-mentioned IntelliSense function comments, can not be entered manually, can be installed to solve the extension, called "JScript vsdoc Stub Generator"

Above, if help, please leave a message to my motivation, if there is a problem, please leave a message I good to correct, thank you.

vs. JS IntelliSense

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.