Try this:
/** This is a test. */
function test1(a)
{
}
and this:
/**
* This is a test.
* @param {string} a - the parameter.
*/
function test2(a)
{
}
It seems that Visual Studio now uses “JSDoc” notations.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I just installed Visual Studio 2019 Community Version 16.9.5.
I created a brand new ASP.net Web-App-Project for VB.net.
In that project i added a new javascript-file.
Now i write a javascript function with xml comments like:
function test(a) {
/// <summary>
/// This is a test
/// </summary>
/// <param name="a">Test a</param>
}
Prior to VS2019 i worked with VS2013.
In VS2013 when i type "test(" in VS2013 the XML-comments will show as expected like this
In VS2019 i only get this
In a vb.net file in the same project the comments show, only in JS the don't show.
Do i have to kind of enable the XML comments for JS somewhere in the VS settings or have to install an addon?
Try this:
/** This is a test. */
function test1(a)
{
}
and this:
/**
* This is a test.
* @param {string} a - the parameter.
*/
function test2(a)
{
}
It seems that Visual Studio now uses “JSDoc” notations.
Thanks Viorel-1 - that was it!
But is there a kind of backwards compatibility mode that i can activate, an addon for VS, or an import-function that automatically translates the old notation into the new one?
I have developed an own javascript-framework with heavy use of xml-commets for all the functions of the framework.
These comments are all in the VS2013 notation and i would be pretty annoying to translate them all by hand.