I am trying to find solution how to hide and unhide comments in VS2010. What i found is:
# region
comments for code
#endregion
and:
<You can highlight them one by one, Right-click, and choose Outlining > Hide Selection.
The keyboard shortcut for that maneuver is Ctrl+M, Ctrl+H.
You could use this macro to collapse all of the XML comments. I suspect that's about as good as you're going to get.
There is no way other than changing the comment color to hide inline comments and I could see that leading to all sorts of problems.
To hide the selected code or area (first select the area), just use Ctrl + M, Ctrl + H. This works for any selection.
I made a Visual Studio extension that allows you to hide/show comments.
You can get it here:
for Visual Studio 2010-2013
for Visual Studio 2015-2017
Aside from setting the font color of the comments to the same as the background color (which is what that VS plugin that you mentioned does), there is no way to hide comments.
Multi line comments (prefixed with either //
or /* */
are already collapsible, but single line comments are not natively. Your only option for those is to use the Ctrl-MH key chord for a temporary (while the file is open) collapse (as mentioned in @rfmodulator's answer), or remove them altogether.
*The default C# key chord for collapsing all collapsible blocks is Ctrl-MO