다음을 통해 공유


Visual Studio expansions

Mitch Denny describes Visual Studio expansions. This is a really nice feature in VS 2005 that lets you quickly insert templated code where you can fill in key information quickly. For example, you can type prop <TAB> <TAB> and then type in the type and name and you've got a fully filled out member variable with accessor. This saves lots of typing. It also helps out with some of those things you do less frequently. For example, it's got one for defining an attribute class. I do this infrequently enough that I have to look up an example for the details when I want to do it, but with the expansion, you've got the correct code at your fingertips. Mitch describes how to extend it by creating your own expansions.