Thursday 15 May 2014

visual studio 2010 - Keyboard shortcut for C# property declaration? -


I used the shortcut to create a C # property in Visual Studio 2010, but I do not remember how it was.

P>

If I wanted to type:

  public string foo   

I can type in a shortcut that will be generated:

  public string foo {get; Set; }   

What is the shortcut to get something like this in Visual Studio 2010?

You are talking about - many of them are built-in.

Just type prop for an auto-property and you must complete the property name and type.

No comments:

Post a Comment