gpt4 book ai didi

c# - Visual Studio 2017 : not showing correctly on hover (xml documentation)

转载 作者:行者123 更新时间:2023-12-04 11:41:46 27 4
gpt4 key购买 nike

如果您将鼠标悬停在 VS17 (15.6.2) 中具有 xml 文档 ( ///<summary></summary> ) 的某些内容(类、方法等)上,您会看到这个小弹出窗口,其中显示了正确格式化的注释。
我试着列一个 list (复制自 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>
但是弹出窗口只在一行中显示它:
Here is an example of a bulleted list: Item 1. Item 2.
我也尝试添加 <term>到它(如 here )但我得到的是:
enter image description here
我试过另一个 type s 也是(也没有)但没有变化。这是一个错误吗?我如何解决它?

最佳答案

这是我的解决方法:

/// <summary>Here is an example of a bulleted list:
/// <list type="bullet">
/// <item>
/// <description><para>&#x02022; Item 1.</para></description>
/// </item>
/// <item>
/// <description><para>&#x02022; Item 2.</para></description>
/// </item>
/// </list>
/// </summary>

关于c# - Visual Studio 2017 : <list> not showing correctly on hover (xml documentation),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53298744/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com