[英]Visual Studio 2017: <list> not showing correctly on hover (xml documentation)
If you hover over something (class, method,...) that's got xml documentation ( ///<summary></summary>
) in VS17 (15.6.2), you get this little popup that shows the comments properly formatted.如果您将鼠标悬停在 VS17 (15.6.2) 中具有 xml 文档(
///<summary></summary>
)的某些内容(类、方法等)上,您会看到这个小弹出窗口,其中显示了正确格式化的注释。
I tried to make a list (copied from here ):我试图列出一个清单(从这里复制):
/// <summary>Here is an example of a bulleted list:
/// <list type="bullet">
/// <item>
/// <description>Item 1.</description>
/// </item>
/// <item>
/// <description>Item 2.</description>
/// </item>
/// </list>
/// </summary>
But the popup only displays it in a single line:但是弹出窗口只在一行中显示它:
Here is an example of a bulleted list: Item 1. Item 2.
I also tried to add <term>
to it (like here ) but all I get is:我也尝试将
<term>
添加到它(如这里),但我得到的是:
I've tried with the other type
s too (and also without) but no change.我也尝试过其他
type
(也没有),但没有改变。 Is this a bug?这是一个错误吗? How do I fix it?
我如何解决它?
This is my workaround:这是我的解决方法:
/// <summary>Here is an example of a bulleted list:
/// <list type="bullet">
/// <item>
/// <description><para>• Item 1.</para></description>
/// </item>
/// <item>
/// <description><para>• Item 2.</para></description>
/// </item>
/// </list>
/// </summary>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.