[英]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: 使用ReSharper + StyleCop在C#中工作时,我可以自动生成方法的基本文档注释,如下所示:
/// <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? TypeScipt是否有类似的工具,它将生成JSDoc注释部分,以便我可以简单地填写详细信息?
ReSharper has a backlog item for this - Automated JavaScript Comments . ReSharper有一个积压项目 - 自动JavaScript注释 。
At the moment, you just have to type /**
and then enter them yourself. 此刻,您只需键入
/**
然后自行输入。
There are some extension that create vsdoc and jsdoc comments *. 有一些扩展可以创建vsdoc和jsdoc注释 *。
*JSDoc added in v2. * JSDoc在v2中添加。
There's a nice little extension in the VS Code MarketPlace called Document This . 在VS Code MarketPlace中有一个很好的小扩展名为Document This 。 Try that.
试试吧。 Other options are : Comments in Typescript by S.Albert and DocStubsJs by Michael Obermeyer
其他选项包括: S.Albert撰写的Typescript评论和Michael Obermeyer 撰写的DocStubsJs评论
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.