Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio keyboard shortcut for Method Name combobox

In VS 2008 (and prior versions as well I believe) when in the code editor there are 2 comboboxes at the top of the editor. On the left is a Class Name combobox and on the right is a Method Name combobox. Those are the tooltip descriptions but are a little misleading for instance the Method Name box shows all the methods, properties, events etc in the current file. Do these features have official names?

I use the method name combobox a lot because I'll often know that there's a property or method or something in the file I'm working in, but can't remember the exact name, so the dropdown gives me a quick way to browse for what I need. But I can't find a way to assign a keyboard shortcut to this combobox. Is there a keyboard shortcut or an alternative VS feature that I can use to get this functionality?

like image 538
kenwarner Avatar asked Jul 28 '09 15:07

kenwarner


People also ask

What is Ctrl K in Visual Studio?

Edit.SelectionCancel. Surround with. Ctrl+K, Ctrl+S. (available only in Visual Studio 2019 and earlier)

What does Ctrl w do in Visual Studio?

How to use Ctrl+W to close a tab in Visual Studio – Done by code.

What does Ctrl F do in Visual Studio?

Find, Global Find & Find and Replace You've probably already discovered the search shortcut Ctrl-F, but did you know Visual Studio Code has different types of find features built-in? Ctrl + F as mentioned above this shortcut will find whatever you search for in the current file.


2 Answers

Thanks to Jeff's Keyboard Shortcut Summary Macro, I discovered that Ctrl + F2 is mapped to a MovetoNavigationBar command, which pops me into the "Class Name combobox." Add a tab and I'm in the Method Name combobox.

like image 95
kenwarner Avatar answered Sep 20 '22 08:09

kenwarner


An alternative way would be DPack (a free Visual Studio add-in). It allows you to navigate very quickly.

What you should first look at is Alt + U and Alt + M keyboard shortcuts, although I recemmend you going through it's options and looking at DPak's website for a brief overview.

Personally I love DPack and it's the 1st thing I add to my VS (with ReSharper right after it ;-)

like image 20
Piotr Owsiak Avatar answered Sep 21 '22 08:09

Piotr Owsiak