Ordering of items in Intellisense

  • Thread starter Thread starter Ken Durden
  • Start date Start date
K

Ken Durden

Is there any way to control ordering of items in intellisense via
attributes?

For example, I have the following enum:

public enum ESeverity
{
Acceptable,
Low,
Medium,
High
};

In intellisense, this gets displayed as:

Acceptable
High
Low
Medium

in alphabetic order.

This is annoying since I would prefer to see the order as I defined it
in the code which is reflective of the order it makes sense to clients
in.

Thanks,
-ken
 
Ken,

No, there is no way to handle the ordering of these things through
attributes. However, it's a good suggestion.
 
On the same lines, it'd be nice if I could tell IntelliSense to ignore case
when ordering the items in the list.
I declare my private fields with lower case and public properties with upper
case, but they don't show up one after the other. I like typing ignoring the
case and using intellisense to fix it before the word ends (VB-coder
addiction), but having to hold the arrow keys too long slows me down a lot.
Ex:
private string myProp;
pulic string MyProp
{ get {return myProp;} }

I'd like those to be listed one right after the other.

Just a pet peeve.

--
TJoker, MCSD.NET
MVP: Paint, Notepad, Solitaire

****************************************


Nicholas Paldino said:
Ken,

No, there is no way to handle the ordering of these things through
attributes. However, it's a good suggestion.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Ken Durden said:
Is there any way to control ordering of items in intellisense via
attributes?

For example, I have the following enum:

public enum ESeverity
{
Acceptable,
Low,
Medium,
High
};

In intellisense, this gets displayed as:

Acceptable
High
Low
Medium

in alphabetic order.

This is annoying since I would prefer to see the order as I defined it
in the code which is reflective of the order it makes sense to clients
in.

Thanks,
-ken
 
Back
Top