Visual Studio keyboard shortcut for combobox method name

In VS 2008 (and, as I believe, in previous versions), when in the code editor there are 2 combo boxes at the top of the editor. On the left is a field with a list of classes, and on the right is a field with a list of methods. These are descriptions of tips, but they are a little misleading, for example, the Method Name field shows all methods, properties, events, etc. In the current file. Do these functions have official names?

I use the name of the combobox method because I often know that there is a property or method or something in the file I'm working in, but I can’t remember the exact name, so the drop-down menu gives me a quick way to find what I need. But I can’t find a way to assign a keyboard shortcut to this list. Is there a keyboard shortcut or alternative VS function that I can use to get this function?

+11
plugins visual-studio-2008 keyboard-shortcuts
Jul 28 '09 at 15:27
source share
4 answers

Thanks to Jeff Macro's Keyboard Shortcut , I found that Ctrl + F2 maps to the MovetoNavigationBar command, which MovetoNavigationBar me into the Class Name field. Add a tab, and I got into the list of methods.

+22
Aug 6 '09 at 14:28
source share

Alternative way: DPack (free Visual Studio add-in). This allows you to move very fast.

What you should pay attention to first is the Alt + U and Alt + M keyboard shortcuts, although I want you to look at its options and look at the DPak website for a quick overview.

Personally, I love DPack, and this is the first thing I add to my VS (with ReSharper right after it;)

+2
Jul 31 '09 at 15:16
source share

I often use the collapse detection function, which you can access by typing the following key sequence:

Ctrl + M , O

If you have code regions set up, this will also crash them and allow you to quickly zoom in to different parts of your code.

I also recommend setting bookmarks in your code to make navigation easier (this works especially well for multiple files). Place the cursor on a line of code and use the following key sequence:

Ctrl + K , K

After you set your bookmarks, you can use the following to skip all your bookmarks:

Ctrl + B , N

0
Jul 28 '09 at 15:47
source share

You can try the IncrementalSearch and ReverseIncrementalSearch for this. This is not as straightforward as using the mouse in the drop-down list, but it will lead you where you are heading. Just search and continue to use the shortcut until you get to the right one.

The mapping is from emacs, which I'm used to in college and enjoy.

The problem I am facing is that I have many equally named methods and variables, then I have to do a search to find the right one.

So, to find the definition, I just use Sub methodName() in the search.

This is useful for quickly finding snippets / methods / vars of code without looking up from the keyboard.

0
Jul 28 '09 at 17:18
source share



All Articles