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

前端 未结 4 802
温柔的废话
温柔的废话 2020-12-15 21:01

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

4条回答
  •  孤城傲影
    2020-12-15 21:22

    I don't believe there's a standard shortcut in Visual Studio.

    Within Visual Studio's options dialog, I did a search through all available commands for anything containing the word "region":

    Region commands

    But didn't find anything related to navigation, just expand/collapse.

    Addins like Resharper and CodeRush may give you what you want, if you have the budget for it. (And they do a lot more besides.)

提交回复
热议问题