Visual Studio intellisense - 以数字形式显示枚举,而不是alpha顺序?

时间:2016-12-18 16:43:29

标签: visual-studio visual-studio-2015 enums

我们说我们有以下enum

public enum Status
{
   New = 1,
   Acknowledged = 2,
   Approved = 3,
   Rejected = 4,
   Closed = 5
}

Intellisense会将它们显示为:

Acknowledged
Approved
Closed
New
Rejected

虽然知道有用,但将它们放在原来的数字中会更有用#34;顺序。

是否有可能让Visual Studio的智能感知这样做?

0 个答案:

没有答案