Multiline XML Comments in VB.NET and Visual Studio Intellisense

自古美人都是妖i 提交于 2019-12-17 18:44:24

问题


I'm trying to put newlines in my XML Comments in VB.Net. I've read two other posts about C#,

XML multiline comments in C# - what am I doing wrong?

Adding line breaks to comments for Intellisense

But the suggested <para> or <br/> tags don't work. This,

    ''' <summary>
    ''' <para>Line one</para><br />
    ''' <para>Line two</para><br />
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Public Property Speed As Double

Still appears like this:

How can I make this work?


回答1:


As time goes by, bugs get fixed. This works now in Visual Studio 2015 Update 3:

(It might work in earlier versions as well, but I don't have them installed anymore.)




回答2:


Now its better to use VS 2012 which will do the same as it does in C#



来源:https://stackoverflow.com/questions/7070737/multiline-xml-comments-in-vb-net-and-visual-studio-intellisense

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!