I'm watching the video in Entity Framework Code First to a New Database. Notice how the presenter writes the class Blog and everything is automatically written. How can I do that?
4 Answers
This is using the IntelliSense features of the IDE. If you watch, the presenter types 'prop' and then tabs to get code completion. Try it.
Here's a question that is relevant: Shortcut to create properties in Visual Studio?
For further information (and further code snippets), check out the MSDN article and if you want to create your own see Creating Code Snippets.

- 1
- 1

- 29,228
- 19
- 111
- 160
These are called code snippets. Visual Studio contains many predefined ones, but you can also create your own. They are part of the IDE's IntelliSense code-completion tool.

- 30,738
- 21
- 105
- 131

- 10,637
- 2
- 32
- 43
Try ptabtab; this is shorthand for using the snippet named prop
- you can then change the type and name, using ← and → to move between tokens.

- 1,026,079
- 266
- 2,566
- 2,900
That feature is called code snippets.
To automatically enter a template for an auto property as shown at the start of the video, simply type the shortcut code prop
and press Ctrl + Space to invoke IntelliSense. This will create the empty auto property boilerplate code, and you just need to type the important parts, for example, type and name.
See the MSDN article How to: Insert IntelliSense Code Snippets for more information.

- 30,738
- 21
- 105
- 131

- 5,004
- 1
- 25
- 39