在 Visual Studio 2015 中,我尝试将 Edit.NextMethod 和 Edit.PreviousMethod 快捷方式重新分配给任何内容。我尝试过 Alt+向上箭头、Ctrl+向上箭头、Shift+<、Ctrl+Shift+(+)。在我单击分配按钮后,它似乎保存了快捷方式,如果我关闭并重新打开键盘快捷方式,它会显示我输入的快捷方式,但在查看代码时,它不会在方法之间跳转。如果我将其分配给已经存在的键盘快捷键,则键盘快捷键仍然执行旧功能,即使在选项中它表明它保存了我的重新分配。 Alt+向下箭头就是一个例子,即使我将 Alt+向下箭头重新分配给 Edit.NextMethod,它仍然会向下移动我所在的代码行。还有其他人尝试过这个吗?有什么想法为什么它对我不起作用吗?谢谢!
最佳答案
看起来像是 VS 2015 中的一个错误:Edit.NextMethod and Edit.PreviousMethod in Visual Studio 2015 don't work .
In Visual Studio 2015, we rebuilt the Visual Basic and C# IDEs and, unfortunately, these commands were missed. We are planning to bring them back in a future update.
关于keyboard-shortcuts - Visual Studio 2015 无法重新分配键盘快捷键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32507816/