如何自定义Resharper的“代码清理”功能更改 C# 中的文档标题规则
我想使用代码清理以以下方式自动创建文档标题:
/// <summary>
/// **Some summary.**
/// </summary>
/// <param name="myParam">**The param.**</param>
/// <typeparam name="TService">**The type.**</typeparam>
/// <returns>**Whatever.**</returns>
TService Do<TService>(int myParam)
即,摘要具有多行,但其余字段使用单行。目前我的默认 resharper 设置始终使用多行。
Resharper“代码清理”中控制此行为的规则集是什么?是否可以?
I would like to use code clean up to automatically create the documentation headers in the following way:
/// <summary>
/// **Some summary.**
/// </summary>
/// <param name="myParam">**The param.**</param>
/// <typeparam name="TService">**The type.**</typeparam>
/// <returns>**Whatever.**</returns>
TService Do<TService>(int myParam)
This is, summary has multiple lines but the rest of the fields use a single line. Currently my default resharper settings always use multiple lines.
What is the set of rules that control this behavior in Resharper "code clean up"? Is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Resharper 的代码清理不会执行此操作,但您可以使用 GhostDoc。它甚至可以为许多常用方法(构造函数、事件处理程序、属性等)编写正确的注释。
Resharper's code cleanup won't do this, but you can use GhostDoc. It can even write correct comments for a lot of common methods (constructors, event handlers, properties, etc).
我不会创建 XML 文档注释,只会重新格式化它们。
不过它会更新文件头...
I won't create XML doc comments, only reformat them.
It will update file header though...