Don't autocomplete enum with members?
When typing in Enum class, Resharper automatically completes the list with its' members:

This breaks the usual pattern of typing first few letters of a symbol and then pressing tab. For example: namespace name, tab, dot, class name, tab, dot, field name, tab, dot. In the case with enums this pattern is broken and we have to remember that if we press tab, it will autocomplete the whole thing together with the member. I've been using Resharper for years and I could never get used to this difference.
Is there a way to disable this behavior and make Resharper only finish the enum part without the members?
Please sign in to leave a comment.
Hi,
Could you please provide a video/gif demonstrating the specified behavior? Generally, enum shouldn't be completed automatically with its members.
Thank you in advance.
Angelina Elycheva Sure, here it is:
https://youtu.be/sTTRvrvKpn0
As you can see here, once I type in
Char
, Resharper only proposes full autocompletion together with enum members:CharacterStateID.GettingHit
and other, but notCharacterStateID
by itself. What want is to typeChar
, press tab and Resharper to autocomplete up toCharacterStateID
, then press dot and see all the members by themselves and then type from there.The reason for it is because it goes along with how we type everything else: when we type in a part of the name of the class, Resharper doesn't autocomplete
ObjectName.FunctionName(
for us automatically, it autocompletes only the name of the object itself and then we have to type in the dot ourselves and start typing the function name. Also, the enum name clutters the list of names and it's harder to read and understand which option I want.This feels better to work with:
https://www.youtube.com/watch?v=2OOk975ZQ14
As you can see, Visual Studio's IntelliSense lets us to complete only the Enum name itself:
CharacterStateID
and then once I type the dot, I can read the members of it in a more clear way.Also, the same problem exists for static class members, such as
Vecto2D.zero
.