Как говорится в названии, как создавать собственные фрагменты кода в Visual Studio 2008?





Вот ссылка на утилиту для создания / редактирования сниппетов. Он работает для большего количества языков, чем только VB, несмотря на классификацию в ссылке.
См. Официальную рецензию здесь:
Это тоже только что было выпущено: http://codeplex.com/SnippetDesigner
The Snippet Designer is a plugin which enhances the Visual Studio IDE to allow a richer and more productive code snippet experience...
Features
A Snippet editor integrated inside of the IDE which supports C#, Visual Basic, JavaScript, HTML, XML and SQL
- Access it by opening any .snippet file or going to File -> New -> File -> Code Snippet File
- It uses the native Visual Studio code editor so that you can write the snippets in the same enviorment you write your code.
- It lets you easily mark replacements by a convenient right click menu.
- It displays properties of the snippet inside the Visual Studio properties window...
A Snippet Explorer tool window to search snippets on your computer.
- It is located under View -> Other Windows -> Snippet Explorer
- This tool window contains a code preview window which lets to peek inside the snippet to see what it is without opening the file.
- Maintains an index of snippets on your computer for quick searching.
- Provides a quick way to find a code snippet to use, edit or delete...
Ссылки MSDN хороши, но иногда я предпочитаю простой учебные пособия.
Инструменты-> Менеджер фрагментов кода
Получить список каталогов. Выберите (или добавьте) Мои фрагменты кода.
Сами сниппеты должны быть созданы как отдельные файлы с расширением .snippet.
Вот руководство по их использованию и созданию: Фрагменты кода в Visual Studio