添加换行符的智能感知评论智能、换行符

由网友(地狱再见行不行)分享简介:有谁知道如何插入线打入的总结评论,以便换行要体现在智能感知文档? Does anyone know how to insert a line break into a summary comment in order for the line break to be reflected in Intellisense...

有谁知道如何插入线打入的总结评论,以便换行要体现在智能感知文档?

Does anyone know how to insert a line break into a summary comment in order for the line break to be reflected in Intellisense documentation?

要澄清一下,假设code文档。

To clarify, assume code documentation..

/// <summary>
/// Some text documentation
///  - a line break - 
/// Some more documentation
/// </summary>
public void SomeMethod() { }

因此​​,使用这种方法的智能感知提供了格式化这样的方法总结时:

So when using this method Intellisense offers a summary for the method formatted like this:

某些文本文档

一些更多的文档

(注 - '对'的标签不创建空换行 - !我已经试过了)

推荐答案

尝试使用这一点。

/// <summary>
/// <para>Paragraph 1.</para>
/// <para>Paragraph 2.</para>
/// </summary>

但我不认为你可以有一个实际的空行。 空对标签被忽略。

But I don't think you can have an actual empty line. Empty para tag gets ignored.

阅读全文

相关推荐

最新文章