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?

3
  • 23
    This is a documented limitation. No change in VS2010. connect.microsoft.com/VisualStudio/feedback/details/301904/… Commented Aug 15, 2011 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. Commented Sep 13, 2012 at 10:51
  • @HansPassant: Yes, please post as an answer. Commented Nov 25, 2013 at 16:27

2 Answers 2

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.)

Sign up to request clarification or add additional context in comments.

Comments

-1

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

enter image description here

2 Comments

No. You are using C# but the asker uses VB.NET.
It does not work for VB.Net in VS2012. Pl specify for VB.Net

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.