For example, I have the following code:
namespace VS2013_EnumTypes
{
class Program
{
enum SomeEnum
{
One,
Two
}
static void SomeMethod(SomeEnum someEnum)
{
//some code
}
static void Main(string[] args)
{
SomeMethod()
}
}
}
In Visual Studio 2010 and 2012 I can type name of the method SomeMethod
and when I type parenthesis '(' then Visual Studio 2010 and 2012 offers me to select the type SomeEnum. But Visual Studio 2013 doesn't do this. It only add for me closing parenthesis and doesn't offer me select enum type, and I am forced to type name of enum type manually.
How to force VS 2013 to show me enum type, which used as parameter of method?
If you turn off Automatic Brace Completion (Tools->Options->Text Editor->C#) Visual Studio gives suggestions as in previous versions. Unfortunately that's just a bad workaround, but anyhow...
Hopefully this is not by design, and it might be related to this bug: http://connect.microsoft.com/VisualStudio/feedback/details/793192/vs-2013-autocompletion-of-parenthesis-breaks-intellisense.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With