Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view overload signatures in Visual Studio 2015's tooltip

Tags:

Visual Studio 2015 (and older versions) have a tooltip when you hover over various identifiers that will tell you information like the type and method signatures. A screenshot of this functionality is shown below:

When there are overloads, as there is below, I'd like some way to be able to view these overloads. I find this is a somewhat common case as I'd like to identify if an overload might have something closer to what I actually need.

When typing the method for the first time, such is possible and the tooltip has arrows that make it clear that you can do this (the up/down arrow keys switch between overloads here):

I also note that this window has more details, which would be useful to have when hovering. This dialogue isn't so easy to open, however, once the code has already been written (I seem to have to type the method call from scratch).

Is there any way to view the overloads when hovering alone? Or perhaps more ideally, to be able to see the second window when hovering over the identifier?

It doesn't have to be a native feature. A compatible extension would work as well. I'm thinking of C# in particular, but it doesn't have to be just that.

like image 966
Kat Avatar asked Jul 17 '15 21:07

Kat


People also ask

How do I view overloads in Visual Studio?

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.

How can I see overloads in Vscode?

Hitting ( after the method name did the trick, and I can use up and down arrow keys to navigate between overloads. I found that I can use Ctrl+Shift+Space thanks to your answer.


1 Answers

Place the insertion point between the () and press Ctrl+Shift+Space. Then use the arrow keys to navigate.

enter image description here

like image 111
David Long Avatar answered Oct 10 '22 08:10

David Long