Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to jump to the region header from the endregion tag in c# visual studio 2012?

If i have the following

#region
blah;
blahblah;
.....
moar;
#endregion

how can i jump to the top #region label if i see the #endregion tag on my screen?

Is there a short cut?

like image 952
jordan Avatar asked Nov 23 '12 00:11

jordan


2 Answers

Ctrl+] will jump between the start and end of blocks. I just tested, and it works for #region blocks for me in VS2010.

Edit: The relevant command is Edit.GoToBrace

like image 104
TheEvilPenguin Avatar answered Oct 08 '22 20:10

TheEvilPenguin


The answer is Ctrl + ] as already answered by @TheEvilPenguin.

But I thought to add this awesome link for other shortcuts as well, which can be helpful in speeding up routine tasks in VS.

Save the link page as html in your system, as the link might expire in future.

like image 26
Devraj Gadhavi Avatar answered Oct 08 '22 19:10

Devraj Gadhavi