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.
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.
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.
Place the insertion point between the () and press Ctrl+Shift+Space. Then use the arrow keys to navigate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With