VS 2015 shortcut for “GoTo Region” #region / #endregion

青春壹個敷衍的年華 提交于 2019-12-24 17:27:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!