{"id":133,"date":"2011-11-12T16:16:00","date_gmt":"2011-11-12T10:46:00","guid":{"rendered":"https:\/\/ashokaon.tech\/blog\/?p=133"},"modified":"2020-07-18T00:46:20","modified_gmt":"2020-07-17T19:16:20","slug":"recursive-collapse-items-in-visual-studio-2010-solution-explorer","status":"publish","type":"post","link":"https:\/\/ashokaon.tech\/blog\/recursive-collapse-items-in-visual-studio-2010-solution-explorer\/","title":{"rendered":"Visual Studio 2010 Extension for collapsing solution explorer items"},"content":{"rendered":"<p><span style=\"font-size: 10px;background-color:#FFFF99;display:block\">(Note: This blog post was originally published under my old domain(codesmiles.com), <a href=\"http:\/\/codesmiles.com\/post\/recursive-collapse-items-in-visual-studio-2010-solution-explorer.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>. <a href=\"https:\/\/web.archive.org\/web\/2011*\/http:\/\/www.codehappiness.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Web Archive link<\/a>.<\/span><br \/>\nI have recently realised how folks get significantly uncomfortable and could also loose little amount of productivity speed when navigating Solution Explorer which is in a state of mess due to randomly expanded and collapsed Solution Explorer items, it surely causes at least a tiny amount of lack of clarity.<\/p>\n<p>The basic TreeView control or Tree control is a common windows control found in many places in Windows OS, including Windows Explorer. The same is found in Visual Studio\u2019s Solution Explorer, for those who are not aware; this control supports some keyboard shortcuts, I mean whether you are in Windows Explorer or Visual Studio Solution Explorer you can select a node\u2019s parent and use these shortcuts.<\/p>\n<p>+ (plus) &#8211;&gt; Expand<\/p>\n<p>&#8211; (minus) &#8211;&gt; Collapse<\/p>\n<p>* (asterick) &#8211;&gt; If you would like to expand recursively a particular item&#8217;s child items<\/p>\n<p>But there is no shortcut to collapse recursively.<\/p>\n<p><a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/cb0ec47d-05a4-40a7-ba39-9a2da6492f1c\/\" target=\"_blank\" rel=\"noopener noreferrer\">Collapse Selection in Solution Explorer<\/a> extension is available for Visual Studio 2010 that adds an icon to the Solution Explorer(shown below), clicking which recursively collapses the child items. You can press Ctrl + Alt + Num(-) &#8211; numeric keypad\u2019s &#8216;-&#8216; to use it. This extension is better than the functionality in \u201cPowerCommand for Visual Studio 2010\u201d extension, as explained in the above link.<\/p>\n<p><a href=\"wp-content\/uploads\/collapse.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"collapse\" src=\"\/blog\/wp-content\/uploads\/collapse_thumb.png\" border=\"0\" alt=\"collapse\" width=\"674\" height=\"493\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. I have recently realised how folks get significantly uncomfortable and could also loose little amount of productivity speed when navigating Solution Explorer which is in a state of mess due to randomly expanded and collapsed<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[28,34],"_links":{"self":[{"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/posts\/133"}],"collection":[{"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":4,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":294,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/posts\/133\/revisions\/294"}],"wp:attachment":[{"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}