How to choose overload method suggestion order in

2019-08-11 11:03发布

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?

2条回答
Rolldiameter
2楼-- · 2019-08-11 11:28

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.

查看更多
Evening l夕情丶
3楼-- · 2019-08-11 11:33

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.

查看更多
登录 后发表回答