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