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

jordan picture jordan · Nov 23, 2012 · Viewed 7.2k times · Source

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?

Answer

TheEvilPenguin picture TheEvilPenguin · Nov 23, 2012

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