Reputation: 581
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?
Upvotes: 7
Views: 8636
Reputation: 21
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
Upvotes: 2
Reputation: 250922
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.
Upvotes: 6