C# 或 VB 文档注释中的粗体或斜体? [英] Bold or italic in C# or VB documentation comments?
本文介绍了C# 或 VB 文档注释中的粗体或斜体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在文档注释中使用粗体或斜体?类似的东西:
Is there a way to use bold or italic inside documentation comments? Something like:
/// <summary>Cleanup method. This is <b>recommended</b> way of cleanup.</summary>
public void CleanAll();
预定义标签列表 不包含这样的功能,但您知道某种实现强调/突出显示的方法吗?如果将鼠标悬停在代码上时它也可以显示在工具提示中,则最好.
The list of predefined tags does not contain such a feature, but do you know of some way of achieving emphasis/highlighting? Preferably, if it could be shown also in tooltips when hovering over the code.
我们有
和 ,但它们已经有了它们的语义.
We have <c>
and <code>
there, but they already have their semantics.
推荐答案
此功能现已在 Visual Studio 2019 版本 16.3.0 (发行说明).
This feature is now available in Visual Studio 2019 version 16.3.0 (release notes).
- 您可以将
或
标记用于 斜体.
- 您可以使用
或
标记来表示粗体.
- 从发行说明来看,似乎支持多种 html 标签,但是 官方文档 似乎尚未更新此新功能.
- You can use the
<i>
or<em>
tags for italic. - You can use the
<b>
or<strong>
tags for bold. - From the release notes, a variety of html tags seem to be supported, but the official documentation doesn't seem to be updated with this new feature just yet.
看起来像这样:.
这篇关于C# 或 VB 文档注释中的粗体或斜体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文