VS 2015“转到区域"的快捷方式; #region/#endregion [英] VS 2015 shortcut for "GoTo Region" #region / #endregion
问题描述
Visual Studio 2012具有有效的键盘快捷键,可以在#region
和#endregion
之间来回移动.
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.
如何从c#visual Studio 2012中的endregion标记跳转到区域标题?
Visual Studio 2015似乎已停止支持该区域的键盘快捷键.
Visual studio 2015 seems to have stopped supporting this keyboard shortcut for regions.
我已经在Google上搜索并找到了以下链接.
I have googled and found below links.
和
2. Visual Studio 2015键盘快捷键-完整列表
但是我找不到"Goto Region"
的键盘快捷键.
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?
推荐答案
我已经对此进行了测试,一切都对我有效.在这种情况下,GitHub上存在一些问题.
I have tested this and everthing works fine for me. There are some issues on GitHub for this case.
- #10782
- #7120
- #7327
这些问题已全部解决,应从Visual Studio的Update 2交付.如果您将Visual Studio更新到最新的更新,则一切都应该正常工作,例如在带有提到的CTRL + ]
组合的Visual Studio 2012中.
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 + ]
.
这篇关于VS 2015“转到区域"的快捷方式; #region/#endregion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!