Saturday, June 10, 2006

Code Snippets : A new feature in Visual studio 2005

Code Snippets are reusable, task-oriented blocks of code.Code Snippets provide simple code generation for repetitive tasks within the Visual Studio 2005 IDE. For example, rather than typing a complete property declaration or case statement, just type a brief shortcut, TAB, and fill in a couple of values. The construct is built for you. Visual Studio 2005 includes code snippets covering tasks ranging from creating a custom exception, to sending an e-mail message, to drawing a circle. A set of Visual Basic and Visual C# Code Snippets are included in the Visual Studio 2005 box.

Where to get the Code snippets?
A set of code snippets for VB.Net is available in Visual Studio 2005 box. The C# version of the code snippet can be downloaded from following URL.
You can get code snippet from various thirdparty vendors also.Here is a website where you can get free code Snippets.

How to create your own code snippet?

It is very easy to create your own code snippet using VS.NET Editor.To learn more about creating a code snippet visit following URL.

A code snippet editor also available for free download using which code snippet can be created easily.You can download it from following URL