Sometimes I need hide a lot of comments for show code C++ in Visual studio 2012. Is it possible do it by one or two clicks?
If you have a comment block, then there should be a "-" (minus) symbol at the top left of the block which lets you collapse it:
/* <---- Collapse button to the left of this
Comment
block.
*/
If you want to do more than this (e.g. hide ALL comments), then I'm not aware of any built-in way to do this, but you may want to take a look at this add-on which claims to do just that.
According to this answer all the plug-in does is change the color of comments to be the same as your background color, so it should be easy to achieve the result manually or via your own macro / plugin (if you can't get the one on that link to work for your version of VS). This strikes me as a rather inelegant solution (you'll have what appears to be (but isn't) whitespace where the comments were, which could make it easy to accidentally erase them), but it may suit your purposes.
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