Search code examples
c#visual-studiopropertiesshortcutcode-snippets

Shortcut to change property to full property


I already have a property like this

public int MyProperty{get; set;}

I need to change this property as a full property like this

private int myVar;

public int MyProperty
{
    get { return myVar;}
    set { myVar = value;}
}

any shortcut available in VS2013 for this?


Solution

  • The answer I was looking for was Ctrl + r with Ctrl + E.