Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# IntelliSense for enum type

I recently moved from VB to C# and I miss the way VB handle IntelliSense behavior for enum types.

In VB, when you assign or compare am enum value, the IntelliSense will open the list of enum values directly.

In C#, the IntelliSense will only select the enum type in the list, forcing me to type a "." to get the list of enum values.

Is there a way to reproduce VB enum behavior in C# (without third party plugin)?

like image 536
The_Black_Smurf Avatar asked Dec 18 '13 16:12

The_Black_Smurf


1 Answers

Unfortunately, that specific feature is part of Microsoft's Visual Basic-Specific IntelliSense

Automatic Completion

  • Completion on various keywords

    For example, if you type goto and a space, IntelliSense will display a list of the defined labels in a drop-down menu. Other supported keywords include Exit, Implements, Option, and Declare.

  • Completion on Enum and Boolean

    When a statement will refer to a member of an enumeration, IntelliSense will display a list of the members of the Enum. When a statement will refer to a Boolean, IntelliSense will display a true-false drop-down menu.

You should get it to pop up through regular intellisense by hitting . or Ctrl + Space, though.

like image 140
valverij Avatar answered Sep 28 '22 11:09

valverij