问题描述
当我在 Visual的文档中使用< para></para>
标记时(也以< para/>
的形式)Studio 2015 Community Edition ,我在IntelliSense工具提示中显示了一个额外的空白行(键入成员名称时显示的空白行).
When I use <para></para>
tag in documentation (in form of <para />
as well) in Visual Studio 2015 Community Edition, I'm getting an extra blank line displayed in IntelliSense tooltip (the one which appears when typing in member name).
我尝试了许多变体,包括但不限于以下示例中列出的变体:
I've tried many variants, including but not limited to listed in the following example:
public interface IFooBar {
///<summary>foo<para>bar</para><para>baz</para></summary>
void Foo();
///<summary>foo
///<para>bar</para>
///<para>baz</para>
///</summary>
void Bar();
///<summary>foo<para />bar<para />baz</summary>
void Baz();
///<summary>foo<para />
///bar
///<para />baz
///</summary>
void Qux();
}
但它仍然出现,并且令人发怒.请,如果有人知道如何摆脱它,请帮助我.
but still it appears, and it is infuriating. Please, if anyone knows how to get rid of it, help me.
问题不在于在XML注释中获取新行,我知道该如何获取.这是关于在使用< para/>
标记时摆脱 extra 新行.
The question is NOT about getting new lines in XML comments, which I know how to obtain. It is about getting rid of extra new lines while using <para />
tag.
推荐答案
毕竟,使用任何形式的< para/>
标记.
After all, it seems that there's no way to get rid of extra blank line rendered by Visual Studio when using any form of <para />
tag.
此外,似乎没有办法添加简单的换行符.不,HTML标记不起作用.不,& 10;
和& 13;
也不起作用.
Furthermore, there seems to be no way of adding a simple line break. No, HTML tags don't work. No, &10;
and &13;
are not working either.
因此,基本上可以归结为:根本没有换行符,或者有多余的换行符.
So, it basically boils down to this: either no line breaks at all, or extra line breaks.
这篇关于从< para>/para和< para/>在VS2015CE中,无法摆脱它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!