Igor Gatis
Igor Gatis

Reputation: 4898

How to choose overload method suggestion order in VS?

Say a class has a some methods with same name and different parameters. How do I tell VS to suggest them in a particular order?

Upvotes: 2

Views: 482

Answers (2)

Daniel Dutton
Daniel Dutton

Reputation: 187

It can't be done. Simples. Overloads are ordered ascending by the number of parameters. Suspect you would indeed need to write a plug in.

Upvotes: 2

keyboardP
keyboardP

Reputation: 69372

You should keep to the convention of having all common parameters appear in the same order in every overload. From MSDN:

Do be consistent in the ordering of parameters in overloaded members. Parameters with the same name should appear in the same position in all overloads.

I don't think there's a way of ordering Intellisense without creating a plugin that interacts with it.

Upvotes: 0

Related Questions