Reputation: 35434
I use lots of #region to organize my C# codes and one very-often thing I have to repeat is collapse and/or expand the #region
area by clicking on the button lie at the #region containing line
- i.e. the one marked with @1 as the below snapshot.
It would be lovely to be able to have a hotkey so that we can quickly collapse/expand the current region that contains the current line where the caret is in.
My google search comes up little helps so I ask here.
Is it possible and how can we archive that?
Upvotes: 1
Views: 79
Reputation: 4226
With visual studio defaults you can:
Edit.CollapseCurrentRegion
Edit.ExpandCurrentRegion
Try to set it up or find out your settings for these commands in Options->Environment->Keyboard
Upvotes: 2