HideShow Comments


Hides comments and replaces them with a callout icon. The comments are shown as tooltip and when editing them.

(22) Review
Visual Studio
2013, 2012, 2010
Download (6,161)
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Reviews (22)
Q and A (24)
Sign in to write a review
Sort by:

by Trung Hieu Nguyen | December 08 2014

Absolutely awesome! Work well on Unity3D C# project. Definitely recommended this :)

by Michael-DragonSpark | November 24 2014

I can't believe I didn't find this awesome extension sooner!!!!

by pingman_matt | November 18 2014

Please allow extension to work with Shared Projects!

by Joseph_Schrag | August 19 2014

Love the tool! I've always liked XML comments for the intellisense & autodoc benefits, but they make the code look cluttered. This takes care of it.

Would love to see C++ support!

by diaconu13 | July 22 2014

I hate generated comments and this is just what I need to hide them

by goneneren | July 18 2014

by Gelo32k | May 22 2014

This thing is really helpful, Thank you.

by daf121 | May 20 2014

Good extension that fails for large solutions:
I can't contact 3dGrabber. Please tell him if you can.

3dGrabber May 21 2014
| Edit |

Poof, here I am :)
I'll look into the issue, as soon as I have some time.
Please use the Q&A tab to report issues.

by EgilB | April 29 2014

An excellent extensions that does exactly what it says on the tin. Some fresher icons that looks better with the style of vs2013 would be great, but I'm not complaining. After learning the shortcuts, it's just a matter of hiding the toolbar ;)

by ChaseCarlile | March 18 2014

The ability to change icons would make it more usable for me simply because the current ones don't quite work with my color scheme.

by Crantech Solutions Ltd | March 15 2014

Such a handy feature that is sorely lacking from the standard install of Visual Studio.

In my career as a developer, I have always strived towards best practice. One of these so-call best practices is around commenting the code that I write. One year I will argue the merits of writing nice long comment blocks before ever class and member that will support it. Other years I will follow the practice of documentation through well written names for all my elements.

Working as a contractor, it is often necessary to switch your stance based on the team decisions - or even Stylecop. This little tool allows me to not have to worry about the "right" way. I just wish that it was a part of Visual Studio or Resharper.

by docflabby | March 14 2014

Exactly what I was looking for...so many projects....so much meaningless auto generated XML help...

This cuts thought it all!

by Ricky.Stevens | January 09 2014

Legend! Thanks!

by s.wl | January 05 2014

Pretty useful extension !
It would be very greater if we could see different types of icon (shape, color...) depending on the comment nature :
- For instance XML doc with a green icon, other "classic" comments with a yellow one
- Adding some comment prefixes such as //! which indicates it is important so reduce it with a red icon
- Eventually been able to define our own prefixes and associate to a custom icon

Good work.
PS : If you plan to implement with other languages, don't forget F# :)

by Scott Beeson | November 04 2013

Seems cool, but does not work in javascript files which is what I needed

3dGrabber November 05 2013
| Edit |

"Works only for C# so far", clearly stated in the description.
I'm looking into supporting more languages in the future.

by t-graham | October 01 2013

Great job. These really should be standard functions in VS.

by Oren Trutner | September 09 2013

Fabolous -- thank you!

by Jan Roelof de Pijper | August 24 2013

This is bloody marvelous! Thank you very much for this contribution.
I try to be consistent with providing XML comments for documentation and tooltip help, but these comments do tend to make the code (much) less readable. This extension is a godsend for me.

Perfection for me would be reached if there was an option to (temporarily) hide commented lines completely, so without even the callout icon. For me this would make the (more compact) code even more readable.

Jan Roelof

by SixOThree | August 22 2013

A few quirks, but a very welcome addition to VS.

"Code should be self documenting" is fine for people reading my code; and that's what I strive to create. But the people consuming my classes should not have to read code to understand what it does. This affords me the best of both worlds.

by Marcel Popescu | July 18 2013

Fantastic - I work on a project where it seems like every statement is commented, it was driving me crazy. Thank you!!!

1 - 20 of 22 Items   
Sign in to start a discussion

  • Option to hide comments without tooltip
    1 Posts | Last post March 12, 2015
    • Hello, would it be possible to hide comment completely - i.e. hide whole lines and don't show tooltip at all? 
  • Does Nothing - StyleCop ReSharper GhostDoc
    1 Posts | Last post February 19, 2015
    • I am running VS 2013 with other tools as well and it does nothing at all. I have had it installed for some time now and I do believe that it once worked. I uninstalled and re-installed it today and it does nothing at all that I can tell.
      It is a good idea.
  • NullReference exception
    1 Posts | Last post February 05, 2015
    • When typing the following text in editor: 
      private static Dictionar<Type, Func<object>> Creators = new Dictionary<Type, Func<object>>()
          { typeof(IServiceType), (
      when I'm about to write the '(' visual studio crashes with the following exception:
      System.NullReferenceException was unhandled
        Message=Object reference not set to an instance of an object.
             at HideShow.Implementation.Tagger.avfavsa.asdbb(Exception exception)
             at System.Reactive.AnonymousSafeObserver`1.OnError(Exception error)
             at System.Reactive.Linq.Observable.Select`2._.OnError(Exception error)
             at System.Reactive.Linq.Observable.Where`1._.OnError(Exception error)
             at System.Reactive.Linq.Observable.Buffer`1._.OnError(Exception error)
  • Toolbar button state not remembered
    1 Posts | Last post January 15, 2015
    • The state of the toolbar buttons is not being remember when I close/reopen VS (I'm working on the same solution) - is this even possible? I'd like comments to be hidden by default, so I have to push 2 of the toolbar buttons each time I reopen VS. 
  • Error when run with VSCommands with VS2013.
    5 Posts | Last post December 23, 2014
    • Hi,
      This is a great extension, but I have a clash with the equally awesome VSCommands extension on VS2013 Ultimate. It works fine when that extension is disabled, but if they are both enabled I get the following errors in my ActivityLog:
          <time>2014/02/25 13:31:07.197</time>
          <description>Begin package load [HideShow.Package.Package, HideShow.Package, Version=, Culture=neutral, PublicKeyToken=96af82921a3c7625]</description>
          <time>2014/02/25 13:31:07.225</time>
          <description>SetSite failed for package [HideShow.Package.Package, HideShow.Package, Version=, Culture=neutral, PublicKeyToken=96af82921a3c7625]</description>
          <errorinfo>Field not found: 'HideShow.Implementation.Integration.sdsdbswsdber.asdbvsdb'.</errorinfo>
          <time>2014/02/25 13:31:07.227</time>
          <description>End package load [HideShow.Package.Package, HideShow.Package, Version=, Culture=neutral, PublicKeyToken=96af82921a3c7625]</description>
          <errorinfo>Field not found: 'HideShow.Implementation.Integration.sdsdbswsdber.asdbvsdb'.</errorinfo>
        <!-- SNIP -->
        <!-- CONTINUED IN NEXT POST -->
    •   <entry>
          <time>2014/02/25 13:31:08.129</time>
          <source>Editor or Editor Extension</source>
          <description>System.MissingMethodException: Method not found: &apos;System.IObservable`1&lt;!!0&gt; System.Reactive.Linq.Observable.ObserveOn(System.IObservable`1&lt;!!0&gt;, System.Reactive.Concurrency.IScheduler)&apos;.&#x000D;&#x000A;   at HideShow.Implementation.Tagger.avfavsa..ctor(ITextView ava, IOutliningManager sdb)&#x000D;&#x000A;   at HideShow.Package.CsCommentTaggerProvider.&lt;&gt;c__DisplayClass1.&lt;sdfsdfgh&gt;b__0()&#x000D;&#x000A;   at Microsoft.VisualStudio.Utilities.PropertyCollection.GetOrCreateSingletonProperty[T](Object key, Func`1 creator)&#x000D;&#x000A;   at HideShow.Package.CsCommentTaggerProvider.sdfsdfgh(ITextView svbsd, ITextBuffer asdg)&#x000D;&#x000A;   at HideShow.Package.CsCommentTaggerProvider.Microsoft.VisualStudio.Text.Tagging.IViewTaggerProvider.CreateTagger[T](ITextView textView, ITextBuffer buffer)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)</description>
    • Hey Buddy,
      The problem is with the way he has obfuscated his code. He is loading Microsoft's reactive assemblies from his own resources and that is conflicting with the way they are loaded in VSCommands. I could easily fix it for personal use by manipulating his DLL. 
      Hopefully in the next release he will put Microsoft assemblies outside his DLL
    • I am running into this problem, too... this project needs a serious case of the GitHubs. :P
    • Me too. Causes exception.
  • Customisable pattern for lines to hide
    2 Posts | Last post December 19, 2014
    • I want to only hide certain comments (in my case, ones which start with "// ReSharper disable"). Would be great if the user could enter a custom pattern and only hide lines which match the pattern.
    • I agree Seb ... that'd be awesome!
  • It does not work in VB projects
    1 Posts | Last post December 03, 2014
    • Could you make it work in VB projects?
  • AWESOME!!!
    4 Posts | Last post November 24, 2014
    • This IS a great extension!  Can you PLEASE PLEASE PLEASE also collapse Documentation as well?  And also provide a GitHub/Stash Repository so that community can contribute! :)
    • To be clear, I want to auto-hide "///" documentation. :)
    • OOPS... never mind... looks like this fantastically awesome extension does this. :D  It just takes a little while for it to process the file to do it.  Thank you!!!
    • OK, the issue is that I have to open the file, and then click on an element in the file to make it work.  It would be ideal to have it do it automatically like "I Hate #Regions" does without having to focus/click in the file, but this is a fantastic improvement regardless.
  • Feature request - C/C++ support
    2 Posts | Last post August 19, 2014
    • Hello, this could be a very useful plugin, but it supports C# only. :(
      Is it difficult to porting for simple C and C++ codes?
    • I too would love to see this work in C++ as well.  Great work.  Love the tool!
  • Feature request - moving plugin icon outside the code
    5 Posts | Last post July 10, 2014
    • Hello, thank you for very good plugin! This is something I wanted to use for a long time and finally found it here :-).
      I have one thought about possible feature. When I have many documentation comments, that's good I can hide them all with this plugin. However, it still wastes one line for each comment that is hidden. Would it be possible (in the future versions, either by default or as configurable parameter) to move the icon that shows command hidden by your plugin without wasting that one line of screen?
      I mean, for example, by moving this icon to first line of code that is after the comment. Or moving it to that part of Visual Studio editor that is also intended for showing optional line numbers close to each line. What I want to mention is that I like to be able to see as much code on the screen at the same time as I can. And in this case you plugin makes it possible to limit number of lines wasted in editor but not to zero (there is still one line for each icon created by your plugin).
      By the way, the most common scenario for me it to hide all documentation comments and to leave all other commands turned on.
    • Thanks for the input.
      Moving the icon to the gutter is a neat idea, will consider...
      I also thought about use some text marker (underline?) on the documented Method/Class. The question with all these solutions is: how do you edit the comment?
    • I second this suggestion. I think the gutter is too far away, so float the icon just to the left of the first non-whitespace character in the next line. If the user clicks it to edit, show the comment lines and instead of hiding the icon place it just to the left of the first non-whitespace character of the comment. If they click the icon again, the comment is again hidden. I.e., the icon is always there (although maybe there are two versions of the icon, one for Edit and one for Hide).
    • first, great extension Ivo - and I can't understand why VS still doesn't have it.
      And you have my vote for this feature (johny mentioned) - I always imagined it like being totally stripped off comments, and then back on when needed only, saves visual space. But like others said, not complaining :) thank you for this freebie ! 
    • +1 on the need for the complete hiding of the documentation comments without an icon.  An indicator on an existing line of code would be fine.  That would make this already useful extension better than a barrel full of donkeys.
1 - 10 of 24 Items