Code snippet or shortcut to create a constructor in Visual Studio

前端 未结 17 1635
悲哀的现实
悲哀的现实 2020-12-23 12:57

What is the code snippet or shortcut for creating a constructor in Visual Studio?

Visual Studio 2010 and C#.

17条回答
  •  梦毁少年i
    2020-12-23 13:44

    Type the name of any code snippet and press TAB.

    To get code for properties you need to choose the correct option and press TAB twice because Visual Studio has more than one option which starts with 'prop', like 'prop', 'propa', and 'propdp'.

提交回复
热议问题