5

Ctrl-M + Ctrl-S is collapsing current block. But this block can be a method.

Is there a short-cut key to collapse current region?

#region My Region
// group of methods
#endregion
serdar
  • 1,564
  • 1
  • 20
  • 30

2 Answers2

11

While your cursor is pointing @ #region regionname use the hot keys

ctrl + m + m

I think you should look at this post once Visual Studio, Collapse/Extends Regions ONLY shortcut

Community
  • 1
  • 1
Rahul
  • 76,197
  • 13
  • 71
  • 125
  • Cursor is typically not over the `#region regionname`, but thanks for the link. My question seems a duplicate of that one. – serdar Apr 10 '14 at 11:07
  • @serdar, typically what you are trying to achieve can't be done without some extra plug-in/extensions as answered in that linked post. – Rahul Apr 10 '14 at 11:13
2

Why not simply hit CTRL + M, M while cursor in #region regionname

Guilherme Oliveira
  • 2,008
  • 3
  • 27
  • 44