问题
Visual studio 2012 was having a working keyboard shortcut for moving to and fro between #region
and #endregion
.
Ctrl + ]
This was not documented anywhere and this was indeed a keyboard shortcut for moving to and fro between {
and }
. But the same shortcut was working for regions.
See below SO question which is similar.
How to jump to the region header from the endregion tag in c# visual studio 2012?
Visual studio 2015 seems to have stopped supporting this keyboard shortcut for regions.
I have googled and found below links.
1. Default Keyboard Shortcuts in Visual Studio
and
2. Visual Studio 2015 keyboard shortcuts - The complete list
But I haven't been able to find the keyboard shortcut for "Goto Region"
.
Has anyone found an alternate keyboard shortcut for this? OR written a macro or something for the same?
回答1:
I have tested this and everthing works fine for me. There are some issues on GitHub for this case.
- #10782
- #7120
- #7327
These issues are all closed and resolved and should be delivered with Update 2 from Visual Studio. If you update your Visual Studio to the newest Update everything should work fine, like in Visual Studio 2012 with the mentioned combination of CTRL + ]
.
来源:https://stackoverflow.com/questions/36999765/vs-2015-shortcut-for-goto-region-region-endregion