C# hide and unhide comments

zee picture zee · Jan 2, 2012 · Viewed 23.5k times · Source

I am trying to find solution how to hide and unhide comments in VS2010. What i found is:

# region 
comments for code
#endregion

and:

http://holyhoehle.wordpress.com/2010/01/17/hide-comments-in-visual-studio/

but this one is not working in VS2010 or i don't know how to...

So maybe any one can help and offer some solution how to hide comments like:

string x = "...." //comment

Answer

3dGrabber picture 3dGrabber · Jun 2, 2013

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