简体   繁体   中英

Generate documentation comments for typescript in Visual Studio

When working in C# using ReSharper + StyleCop I can auto generate basic documentation comments for methods, which looks something like:

    /// <summary>
    /// The login.
    /// </summary>
    /// <param name="returnUrl">
    /// The return Url.
    /// </param>
    /// <returns>
    /// The <see cref="Task"/>.
    /// </returns>

which I can then add extra detail into.

Is there a similar tool for TypeScipt which will generate the JSDoc comment sections so I can simply fill in the details?

ReSharper has a backlog item for this - Automated JavaScript Comments .

At the moment, you just have to type /** and then enter them yourself.

There are some extension that create vsdoc and jsdoc comments *.

*JSDoc added in v2.

There's a nice little extension in the VS Code MarketPlace called Document This . Try that. Other options are : Comments in Typescript by S.Albert and DocStubsJs by Michael Obermeyer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM