有没有办法使用bold or italic里面的文档注释?就像是:
/// <summary>Cleanup method. This is <b>recommended</b> way of cleanup.</summary>
public void CleanAll();
The 预定义标签列表 https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/recommended-tags-for-documentation-comments不包含这样的功能,但是您知道一些实现强调/突出显示的方法吗?最好是,当将鼠标悬停在代码上时,它也可以显示在工具提示中。
We have <c>
and <code>
在那里,但它们已经有了自己的语义。
此功能现已在 Visual Studio 2019 版本 16.3.0 中提供(发行说明 https://learn.microsoft.com/en-us/visualstudio/releases/2019/release-notes-v16.3#net-productivity-163P1).
- 您可以使用
<i>
or <em>
标签为italic.
- 您可以使用
<b>
or <strong>
标签为bold.
- 从发行说明来看,似乎支持多种html标签,但是官方文档 https://learn.microsoft.com/en-us/dotnet/csharp/codedoc似乎还没有更新这个新功能。
It looks like this: .
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)