Keyboard Region commands

  • Thread starter Thread starter Frank Rizzo
  • Start date Start date
F

Frank Rizzo

In vs.net 2003/c#, how can I collapse the region that I am currently in
using the keyboard?

Thanks
 
Eric said:

That's not what I want to do. Here is an example of what I want:

#region Private Methods

private void DoThis()
{
....
}

private void DoThat()
{
....
}
#endregion

If my cursor is inside of DoThis(), then Ctrl-M-M will collapse DoThis
method. I want it to collapse to the region. How do get that to work?

Thanks
 
Eric said:

Thank you. But that's not exactly what I want. Ctrl-M-O collapses all
regions + all the functions. I just want to collapse the region. I
want the same effect as pressing the minus sign next to "#region MyRegion".

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top