如何导航到下一个或上一个程序? [英] How can I navigate to the next or previous procedure?

查看:43
本文介绍了如何导航到下一个或上一个程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 VB6 中,您可以通过按 CTRL+Page Down 轻松进入下一个过程,也可以通过按 CTRL+ 进入上一个过程向上翻页.

In VB6 you can easily go to next procedure by pressing CTRL+Page Down and also previous procedure by pressing CTRL+Page Up.

但是我找不到任何使用 Visual Studio 2010 编程 VB.NET 的方法;我想使用键盘快捷键向下或向上滚动以转到上一个或下一个过程.

However I can't find any way to do that using Visual Studio 2010 programming VB.NET; I want to scroll down or up to go to the previous or next procedure using a keyboard shortcut.

推荐答案

是的,键绑定确实存在,你很幸运;下面的键绑定与 Visual Studio 2010 的 Visual Basic 相关.

Yes, keybindings do exist and you're in luck; the keybindings below relate to Visual Studio 2010's Visual Basic.

我注意到这些默认键绑定在某些 Visual Studio 安装中不可用.如果是这种情况,请继续执行本节下方的键绑定说明.

Visual Studio 2005, 2008, 2010

  • 下一个方法或类型:CTRL + CTRL + PAGE DOWN
  • 先前的方法或类型:CTRL + CTRL + PAGE UP
  • Next Method or Type: CTRL + or CTRL + PAGE DOWN
  • Previous Method or Type: CTRL + or CTRL + PAGE UP

可以找到 Visual Studio 2010 的 Visual Basic 的所有键绑定 此处,可在 此处

All keybindings for Visual Studio 2010's Visual Basic can be found here, and more keybindings for other programming languages in Visual Studio can be found here

其他版本的相同键绑定:

Same keybindings for other versions:

Visual Studio 2012、2013, 和 2015(以及任何其他没有默认键绑定的版本)

Visual Studio 2012/2013/2015 是否可以 似乎没有任何 Edit.NextMethodEdit.PreviousMethod 键绑定,并且对于其他 Visual Studio 版本的某些安装可以观察到相同的行为,而不是您必须分配您自己的:

Visual Studio 2012/2013/2015 Does not appear to have any Edit.NextMethod or Edit.PreviousMethod keybindings and the same behaviour can be observed for some installations of other Visual Studio versions, instead you'll have to assign your own:

  • TOOLS >> OPTIONS >> ENVIRONMENT >> KEYBOARD >> 选择 Visual Basic 6 来自 Apply the following keyboard mapping scheme 下拉菜单:
  • TOOLS >> OPTIONS >> ENVIRONMENT >> KEYBOARD >> Select Visual Basic 6 from the Apply the following keyboard mapping scheme dropdown:

  • 在命令框中找到 Edit.NextMethodEdit.PreviousMethod:

  • Press Shortcut Keys 框内单击,然后按下您要在键盘上分配的快捷键.在这种情况下,让我们从 Visual Studio 2010 复制快捷键:
  • Click within the Press Shortcut Keys box and press the shortcut keys you want to assign on the keyboard. In this case, let's copy the shortcut keys from Visual Studio 2010:

  • 完成后,单击Assign,然后对其他命令执行相同操作;快捷键现在可以使用了
  • Once you've done that, click Assign and then do the same for the other command; the shortcut keys will now work

默认 键绑定有点误导;它仅适用于您使用 IDE 不支持的 Visual Studio 打开文件,因此您应该注意不要在此下添加键绑定.

The Default key-binding is slightly misleading; it only applies if you open a file with Visual Studio that is not supported by the IDE, therefore you should be careful that you do not add a keybinding under this.

这篇关于如何导航到下一个或上一个程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆