Visual Studio Code Snippets—Creating Snippets with VB Snippet Editor


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

VS Code Snippets

© 2005 Wiley Publishing, Inc.

Creating Snippets with VB Snippet Editor

Creating code snippets by manually editing XML files can be tedious. It can also result in errors that are hard to track down. Fortunately, a third-party tool called Snippet Editor can make your life a lot easier. You’ll find the Snippet Editor at http://msdn.microsoft.com/ vbasic/downloads/tools/snippeteditor/. Download it and install it in a location that you can locate easily, as it doesn’t create an entry in the Start menu. The default location is C:\Documents and Settings\username\My Documents\MSDN\Code Snippet Editor.

You may also want to create a desktop shortcut to the program if you’ll be using it frequently.

When you start the Snippet Editor, it will display a welcome screen showing you how to browse and create new snippets. The left side of the screen is populated with a tree view containing all the Visual Basic snippets defined in your system known to Visual Studio 2005. Initially the tree view is collapsed, but by expanding it you’ll see a set of folders similar to those in the code snippet library (see Figure 19-9).



Previous_Page_.gif Next_Page_.gif


Personal tools