Visual Studio Code Snippets—Code Snippets Revealed


Jump to: navigation, search
CSharp-Online.NET:Articles
Visual Studio Articles

VS Code Snippets

© 2005 Wiley Publishing, Inc.

Code Snippets Revealed

Code snippet functionality has been around in many forms for a long time, but Microsoft has not included it in their development environments natively until the release of Visual Studio 2005, preferring to let third parties create various add-ins for languages such as Visual Basic 6 and the early versions of Visual Studio .NET.

Visual Studio 2005 marks the introduction of a proper code snippet feature built directly into the IDE. It allows code snippets that include not only blocks of code, but also multiple sections of code to be inserted in different locations within the module. In addition, a type of variable can be defined that makes it clear to see what parts of the snippet are to be customized and what sections can be left as is.



Previous_Page_.gif Next_Page_.gif


Personal tools