Code snippet or shortcut to create a constructor in Visual Studio

Type “ctor” + TAB + TAB (hit the Tab key twice). This will create the default constructor for the class you are in:

public MyClass()
{

}

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *