这应该更容易...
我想在我的代码中为XML文档添加"编码"换行符
/// <summary>
/// Get a human-readable variant of the SQL WHERE statement of the search element. <br/>
/// Rather than return SQL, this method returns a string with icon-tokens, which
/// could be used to represent the search in a condensed pictogram format.
/// </summary>
Run Code Online (Sandbox Code Playgroud)
如您所见,我找到了一些答案,证明添加了<和>括号.有趣的是,好的'ol <br />换行符不会在Intellisense弹出窗口中创建换行符.
我发现这很烦人......
有什么建议?
根据这篇文章,可以获得多行XML注释 - 而不是使用///,使用/** */.这是我对多行注释的解释,以及我想要发生的事情:
/**
* <summary>
* this comment is on line 1 in the tooltip
* this comment is on line 2 in the tooltip
* </summary>
*/
Run Code Online (Sandbox Code Playgroud)
但是,当我使用这个表单时,当我将鼠标悬停在我的代码中时弹出的工具提示是单行的,即它看起来就像我写了这样的评论:
/// <summary>
/// this comment is on line 1 in the tooltip
/// this comment is on line 2 in the tooltip
/// </summary>
Run Code Online (Sandbox Code Playgroud)
这种行为实际上是否仍然可以在VS2008中使用?
编辑
gabe指出我误解了"多线"意味着什么,我实际上需要使用<para>或<br>获得我想要的效果.我继续使用,<br>因为我想控制断线发生的位置,即
/// <summary>
/// this comment is on line 1 in …Run Code Online (Sandbox Code Playgroud) 我正在尝试在VB.Net中的XML注释中添加换行符.我读过另外两篇关于C#的帖子,
但建议<para>或<br/>标签不起作用.这个,
''' <summary>
''' <para>Line one</para><br />
''' <para>Line two</para><br />
''' </summary>
''' <value></value>
''' <returns></returns>
''' <remarks></remarks>
Public Property Speed As Double
Run Code Online (Sandbox Code Playgroud)
仍然看起来像这样:

我怎样才能做到这一点?
可能重复:
C#中的XML多行注释 - 我做错了什么?
VB.Net和Visual Studio Intellisense中的多行XML注释
我想对我的方法有一些描述
/// <summary>
/// Perform a divide by b
/// e.g a = 1, b = 2
/// will return 0, since (1/2) = 0.5
/// </summary>
/// <returns>int value</returns>
public static int Div(int a, int b)
{
return (a / b);
}
Run Code Online (Sandbox Code Playgroud)
我希望描述以我输入的相同格式显示..但是,这些文本将始终显示在oneline上.
是否有任何标签,我可以用来让视觉工作室包括所有这些空间和新线?
谢谢
我有这样的XML评论.
/// <summary>
/// Lorem ipsum
/// </summary>
/// <param name="entity"></param>
/// <returns></returns>
Run Code Online (Sandbox Code Playgroud)
我想在其中放置一条(多行)代码.我怎样才能做到这一点 ?
以下是有关多行代码的信息为Intellisense的注释添加换行符