I have a XML comment like that.
/// <summary>
/// Lorem ipsum
/// </summary>
/// <param name="entity"></param>
/// <returns></returns>
I'd like to place inside it a piece of the (multiline) code. How can I do that ?
Here's the info about multiline code Adding line breaks to comments for Intellisense
An XML comment encountered outside the document type declaration is represented by the Comment value syntax element. It contains the comment text from the XML message. If the value of the element contains the character sequence --> , the sequence is replaced with the text --> .
Commenting out an entire XML block using CTRL+ / comments each line separately instead of creating a block comment. Select the entire block of xml and hit CTRL+/ to comment the entire block.
To insert XML comments for a code element Do one of the following: Type /// in C#, or ''' in Visual Basic. From the Edit menu, choose IntelliSense > Insert Comment. From the right-click or context menu on or just above the code element, choose Snippet > Insert Comment.
You can use <code>
and <c>
XML tags
/// <summary>
/// ...
/// <c>Place your code here</c>
/// </summary>
/// <code>
/// More code here
/// </code>
Per comment, in the <summary>
you can use a <c>
tag and outside <summary>
you can use a <code>
tag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With