问题
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?
回答1:
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.
回答2:
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.
来源:https://stackoverflow.com/questions/24232324/how-to-choose-overload-method-suggestion-order-in-vs