325

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

  • 14
    What ever happened to the good old up and down arrows? – Zapnologica Feb 20 '16 at 12:35
  • 6
    @Zapnologica: The Up and Down arrows still exist, but the *IntelliSense* box needs to be activated and opened before those arrows can be used to scroll through the overload options. This question is about how to get the *IntelliSense* box to open. –  Feb 23 '16 at 14:30
  • 3
    How can you make it open by default, control space vs control shift space – Zapnologica Feb 23 '16 at 18:29
  • 9
    @Zapnologica: I use **Control + Shift + Space** sequence, like the old style **Control + Alt + Delete** combination. –  Feb 23 '16 at 19:05
  • In VS2012 it used to open by default when I typed an opened parenthesis after a function name, but it doesn't seem to do that anymore since I got ReSharper installed. Instead, it gives a dropdown menu of possible variables/functions to fill into the first arg. Quite annoying. – Nyerguds Jun 17 '16 at 06:34
  • 2
    For people wondering where the nice auto up and down arrows went for overloads as you're typing: I'm not sure how long this option has been in VS settings but in VS Community 2019 v16.9.2 in Tools>Options>Text Editor>C#>IntelliSense there's a checkbox called 'Automatically show completion list in argument lists (experimental)'. If you uncheck that, the default behaviour of the up/down arrows scrolling through the overloads returns. – bsigma1 Mar 29 '21 at 22:43

11 Answers11

505

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

aardvarkk
  • 14,955
  • 7
  • 67
  • 96
67

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.

thatWiseGuy
  • 384
  • 2
  • 3
  • 18
Neil Knight
  • 47,437
  • 25
  • 129
  • 188
64

Tested only on Visual Studio 2010.

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

Now navigate by pressing the  ↑  / ↓   arrow keys.

Hammad Sajid
  • 312
  • 1
  • 3
  • 14
Alex In Paris
  • 1,017
  • 9
  • 19
  • Perhaps I am doing something wrong, but I can't get this to work in VS2008 or VS2010. –  Mar 30 '12 at 13:59
  • 1
    It's a VS2010 shortcut (not sure about 2008) - but it's possible you changed it or a tool you installed hijacked the shortcut. – Alex In Paris Mar 30 '12 at 14:30
  • This is what i was looking for. Something simmilar to Ctrl+Q in IntelliJIdea/Android Studio. – DaMachk Apr 09 '16 at 10:58
25

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
Madis Otenurm
  • 61
  • 1
  • 7
JaredPar
  • 733,204
  • 149
  • 1,241
  • 1,454
  • In Visual Studio 2015 if this isn't working for you make sure you try this: http://stackoverflow.com/a/31087682/68905 I had to do this to get it to work. – jakejgordon Nov 27 '15 at 02:24
14

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

mikus
  • 3,042
  • 1
  • 30
  • 40
8

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).

KeithS
  • 70,210
  • 21
  • 112
  • 164
6
  • 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.

Dave
  • 4,420
  • 1
  • 34
  • 39
4

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.

Ylenia88m
  • 83
  • 6
  • that's not the same thing. That's the IntelliSense of what values you can put in. not the overloads window. For that you can just do Ctrl+Space – Mastro May 16 '17 at 23:08
3

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

Phylliida
  • 4,217
  • 3
  • 22
  • 34
3

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

Mahdi D.A
  • 31
  • 1
  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Feb 08 '22 at 12:04
1

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.

eaglei22
  • 2,589
  • 1
  • 38
  • 53