Remove explicit casts from autocomplete of enum

Viewed 82

When using the autocomplete of enums, the default option is an explicit cast in many cases, which is usually not the desired one. So if I press Enter or Tab I'll get the undesired autocomplete.

Consider the the Visibility enum. If I type the letter c - instead of offering Collapsed, Visual Studio offers (char).

enter image description here

There are many more offered for different letters:

enter image description here

How can I remove those cast options from the autocomplete menu so that if I type the first letter of an enum value I'll get the desired one?

0 Answers
Related