Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way in .NET to make your overload of a method appear first in the Intellisense dropdown?

In a form, I added an overload of ShowDialog(). In Visual Studio, this overload shows up in Intellisense as the third version. How can I make my overloaded function appear as #1 (i.e. the default)?

like image 693
MusiGenesis Avatar asked Nov 11 '08 15:11

MusiGenesis


People also ask

How do I show 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.

What is IntelliSense How does it work?

IntelliSense is a code-completion aid that includes a number of features: List Members, Parameter Info, Quick Info, and Complete Word. These features help you to learn more about the code you're using, keep track of the parameters you're typing, and add calls to properties and methods with only a few keystrokes.

How do I show IntelliSense in Visual Studio?

The suggestion list of Basic completion appears when you press the default Visual Studio IntelliSense shortcut Ctrl+Space .


2 Answers

You should use a plugin for that: one that accomplishes the required task is the Visual Assist from Tomato - http://www.wholetomato.com/

It does exactly what you want(among the other options): display the non-inherited members on the top of the suggestion list and(or) makes them bold

like image 143
andy.gurin Avatar answered Sep 29 '22 20:09

andy.gurin


As far as I know, there is no way to control the order of overloads in the overload selection intellisense tip.

like image 23
configurator Avatar answered Sep 29 '22 20:09

configurator