Wednesday, November 09, 2005
« Finally Online | Main | Web Part Framework - SharePoint Not Requ... »

One of the cool new features in VS 2005 I’ve seen a couple of presenters use is Code Snippets.  Basically, it is a customizable code generation tool that allows you to type some quick short hand or alias, and VS 2005 will automatically expand it into a block of code.  For example, if you type “foreach” and press TAB a couple of times, you’ll get a new foreach block with customizable types and variable names.  You just have to see it for yourself.

There are a number of built-in Code Snippets (just do a help search in VS 2005), but you can also create your own.  As a matter of fact, someone has already started an online library of code snippets at GotCodeSnippets.net.  Also, there is a Code Snippet editor named Snippy (of course) that will help you build your own Code Snippets and add them to VS 2005.

Comments are closed.