Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I collapse current region with shortcut keys?

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
like image 741
serdar Avatar asked Dec 11 '22 06:12

serdar


2 Answers

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

like image 141
Rahul Avatar answered Dec 13 '22 21:12

Rahul


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

like image 39
Guilherme Oliveira Avatar answered Dec 13 '22 19:12

Guilherme Oliveira