简体   繁体   中英

How to display intellisense's suggestions in the order they are defined?

For example i've been created a struct

struct man
{
    public int age;
    public bool sex;
    public float growth;
}

And when in code I'm start typing something like this:

static void GetSex(man Joe)
{
    int age = Joe.
}

It gives me variants sorted by name. Like this

age
growth
sex

But how can I make visual studio not to sort by name? And give list like this

age
sex
growth

Like I wrote it in order i want.

What you're seeing is the Visual Studio "IntelliSense" feature. You can find settings for it under the "Tools / Options" menu, but there are very few.

You can choose what displays in the list, which key(s) selects the highlighted item, and how the first highlighted item is selected, but there's nothing available that would allow you to reorder the items.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM