添加换行符的智能感知评论 [英] Adding line breaks to comments for Intellisense

查看:215
本文介绍了添加换行符的智能感知评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这篇关于添加换行符的智能感知评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆