15

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:

enter image description here

How can I make this work?

Community
  • 1
  • 1
Kratz
  • 4,280
  • 3
  • 32
  • 55
  • 23
    This is a documented limitation. No change in VS2010. http://connect.microsoft.com/VisualStudio/feedback/details/301904/xml-documentation-para-tag-does-not-work-in-vb-net – Hans Passant Aug 15 '11 at 21:04
  • 5
    @HansPassant just a thought ... your comment is more useful (and has 10 upvotes) than the single answer here. Should be the accepted answer here (I nearly didnt see the comment). Except that the link is broken ... which is a separate issue. – hawbsl Sep 13 '12 at 10:51
  • @HansPassant: Yes, please post as an answer. – Victor Zakharov Nov 25 '13 at 16:27

2 Answers2

3

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

screenshot

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

Heinzi
  • 167,459
  • 57
  • 363
  • 519
-1

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

enter image description here

Trikaldarshiii
  • 11,174
  • 16
  • 67
  • 95