Collapse Expand Regions Only RRS feed

  • Question

  • User2023521679 posted

    I love the #Region "RegionName" #End Region function of visual studio, but I don't see an easy way in the outlining menu to just collapse or expand the regions only. If I toggle outlining, it collapses the functions and sub-routines too. I want to leave the functions and sub-routines non-collapsed so that when I expand a region, they are immediately visible.

    Thursday, June 20, 2013 10:41 AM


All replies

  • User71929859 posted


    Check the below thread.


    Other than that, there is no way to do that. And Visual Studio 2012 doesn't support Macros. So it will not work for VS2012. Sorry. There is really no way to achieve what you are looking for :(

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, June 22, 2013 6:44 AM
  • User2023521679 posted

    I finally got around to implementing this in my visual studio 2010. It worked like a charm. I even added the Collapse / Expand Region Macro commands to the Edit => Outlining menu.

    Wednesday, October 2, 2013 2:24 PM