简体   繁体   中英

Is there a keyboard shortcut for the method dropdown list in Visual Studio 2010's VB.NET code editor?

In Visual Studio, there is a method dropdown list in VB code editor windows. This is highlighted in the screenshot below.

I would like to find out whether there is a default keyboard shortcut to access this list, or if such a keyboard binding can be manually set up (and if so, how)?

VB.NET代码编辑器窗口右上角的下拉列表

Ctrl + F2 is assigned as a default shortcut key to move the cursor to Navigation Bar . ( LHS is classes dropdown and RHS is methods dropdown.)

You can use Tab to jump to methods dropdown.

The whole combination that you need is Ctrl + F2 + Tab .

Hope this will help you.

CTRL + F2 and Tab can access that dropdown list. I was not able to find the direct short-cut for that dropdown list for long time.

Tools->Options->Environments->Keyboard can assign some short-cuts manually.

Using AutoHotKey I was able to create a easier shortcut key: Windows + Shift + O

#+o::
  Send ^{F2}{Tab}{Tab}{Down}
Return

It immediately opens the dropdown too

If you are generally looking for a way to jump to a specific member within the current class, there is also another way:

  1. View.SynchronizeClassView will open the ClassView and directly select the class currently viewed in the Editor. The ClassView holds the member list in the bottom section.
  2. Press Tab to jump to the member list (if not already selected)
  3. Type the member name, press enter to jump to its definion

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM