user153923
user153923

Reputation:

Visual Studio: How to show Overloads in IntelliSense?

Once code has been written, the only way I know of to view the overloads for a method is to actually edit the method by deleting the Parenthesis () and reopening them.

Is there a shortcut key that I could press to activate this instead of having to edit my files?

For an example, please reference the ShowDialog Overload screen shot below:

ShowDialog1 Overloads

Upvotes: 338

Views: 181631

Answers (11)

mikus
mikus

Reputation: 3215

It happens that none of the above methods work. Key binding is proper, but tool tip simply doesn't show in any case, neither as completion help or on demand.

To fix it just go to Tools\Text Editor\C# (or all languages) and check the 'Parameter Information'. Now it should work

enter image description here

Upvotes: 15

aardvarkk
aardvarkk

Reputation: 15996

With your cursor inside the parentheses, use the keyboard shortcut Ctrl-Shift-Space. If you changed the default, this corresponds to Edit.ParameterInfo.

Example:

descriptive screenshot, by jp2code

Upvotes: 538

Mahdi D.A
Mahdi D.A

Reputation: 41

you mean's change overload. just Press Shift + ↑ / ↓

Upvotes: 4

JaredPar
JaredPar

Reputation: 754665

The default key binding for this is Ctrl+Shift+Space. The underlying Visual Studio command is Edit.ParameterInfo.

If the standard keybinding doesn't work for you (possible in some profiles) then you can change it via the keyboard options page

  • Tools -> Options
  • Keyboard
  • Type in Edit.ParameterInfo
  • Change the shortcut key
  • Hit Assign

Upvotes: 26

Neil Knight
Neil Knight

Reputation: 48537

Ctrl+Shift+Space shows the Edit.ParameterInfo for the selected method, and by selected method I mean the caret must be within the method parentheses.

Here is the Visual Studio 2010 Keybinding Poster.

And for those still using 2008.

Upvotes: 68

eaglei22
eaglei22

Reputation: 2831

Mine showed up in VS2010 after writing the first parenthesis..

so, prams.Add(

After doings something like that, the box with the up and down arrows appeared.

Upvotes: 1

Alex In Paris
Alex In Paris

Reputation: 1077

Tested only on Visual Studio 2010.

Place your cursor within the (), press Ctrl+K, then P.

Now navigate by pressing the  ↑  / ↓   arrow keys.

Upvotes: 68

Ylenia88m
Ylenia88m

Reputation: 83

I know this is an old post, but for the newbies like myself who still hit this page this might be useful. when you hover on a method you get a non clickable info-box whereas if you just write a comma in the method parenthesis the IntelliSense will offer you the beloved info-box with the clickable arrows.

Upvotes: 4

Phylliida
Phylliida

Reputation: 4373

Every once and a while the suggestions above stop working, if I restart Visual Studio they start working again though.

Upvotes: 3

Dave
Dave

Reputation: 4468

  • The command Edit.ParameterInfo (mapped to Ctrl+Shift+Space by default) will show the overload tooltip if it's invoked when the cursor is inside the parameter brackets of a method call.

  • The command Edit.QuickInfo (mapped to Ctrl+KCtrl+I by default) will show the tooltip that you'd see if you moused over the cursor location.

Upvotes: 6

KeithS
KeithS

Reputation: 71563

Great question; I had the same issue. Turns out that there is indeed a keyboard shortcut to bring up this list: Ctrl+Shift+Space (a variation of the basic IntelliSense shortcut of Ctrl+Space).

Upvotes: 8

Related Questions