Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide XML comments in Visual Studio 2015

XML comments (before methods etc.) used to hide the summary when collapsed. Now they show it (even when collapsed).

Is there a way to prevent that?

i.e.

This is what's shown:

enter image description here

when the following is collapsed:

/// <summary>
/// How do I hide this text in this view?
/// </summary>
public int abc;
like image 247
ispiro Avatar asked Oct 08 '15 17:10

ispiro


People also ask

How do I hide comments in Visual Studio code?

Menu editor title actionsOn the editor title, a toggle action is available to show/hide the comments quickly.

How do I add comments to XML in Visual Studio?

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.


1 Answers

I didn't like that change either, so I wrote an extension to revert to the VS 2013 behavior. I just wrote it last night, so I'd consider it a beta at this point, but I'll be actively using it and actively fixing any bugs that arise. Feel free to check it out:

https://github.com/refactorsaurusrex/squishy-vs


Turn this...

enter image description here

... into this:

enter image description here

like image 86
Nick Spreitzer Avatar answered Sep 18 '22 11:09

Nick Spreitzer