Snippet Editor 2008 release

Posted Tue, Nov 6 2007 21:49 by bill

I've updated the Snippet editor to work with Visual Studio 2008 and 2005 releases.

 Note this release requires .NET 3.5.



  • Added 2008 product range to the list of products
  • Fixed replacement of the install root variable for Visual Studio that was resulting in a double \ midway of file paths
  • Removed VB's single instancing and replaced it with named pipes messaging. This fixes various issues to do with firewalls, and the remoting VB tries to do. See Visual Studio Magazine November for details on the NamedPipes usage.
  • Set the required permissions to run the application as Administrator for Vista.  Without this, the app would run, but snippets would be saved in the VirtualStore where Visual Studio wouldn't see them properly.  The problem revolves around Visual Studio having the snippet stores in the Program Files tree.


The download includes the source and the release build. (in the bin\release path)

UPDATE: The files are now available from my web site (

Enjoy :)

Filed under: , , , , ,


# Snippet Editor for Visual Studio 2005/2008 | .Net@Think

Tuesday, November 13, 2007 5:30 PM by Snippet Editor for Visual Studio 2005/2008 | .Net@Think

Pingback from  Snippet Editor for Visual Studio 2005/2008 | .Net@Think

# re: Snippet Editor 2008 release

Friday, November 16, 2007 8:13 PM by Lars Norpchen

Hey, thanks for the update.  One question...any chance of supporting C++ snippets?  I know C++ coders are second class citizens with .net, but the VS2005 IDE does support C++ snippets with the enhancement package. I was hoping for some way to create some useful snippets for C++ without having to hand edit XML.  Thanks!

# re: Snippet Editor 2008 release

Saturday, November 17, 2007 5:36 PM by bill

Hi Lars,

I'd be more than happy to provide support for C++ snippets especially as the C++ team has done me/us a favor or two in the past :)  However, to do that I'd need to know more details on what they support and where they store their snippet paths. If should be under HCKU\Software\Microsoft\VisualStudio\CodeExpansions\<product name> or similar.  I looked for details, but the enhancements pack wouldn't install here on Vista. The last release I could find was 11\06. The other enhancement packs are now on codeplex but not the snippet one. There's also no sign of the feature in VS 2008 that I've seen nor is there an enhancement pack with snippets for VS 2008.  So I'd be looking for some sign of commitment from the C++ team on its inclusion first.

Ideally there should also be an updated snippetformat schema as the current one restricts the languages to VB, C#, XML and JSharp.  That's not a show stopper as it can easily be coded around, but it would be nice just from a reference point of view :)

# Visual Studio 2005/2008的代码段编辑器

Monday, November 19, 2007 6:03 PM by 自由、创新、研究、探索……

Bill McCarthy重新带来了包括完整源码并支持Visual Studio 2008版本的编辑器,它还支持Visual Studio 2005/2008的Express版本。

# re: Snippet Editor 2008 release

Tuesday, December 11, 2007 1:15 PM by Wolfgang


a little bug in Snippet Editor 2008:

In Products.vb add following after line 275:

275 Dim subkey As RegistryKey = languageKey.OpenSubKey(subkeyName, False)

276 If subkey.GetValue("") Is Nothing Then Continue For

# 善用VS中的Code Snippet来提高开发效率

Monday, February 16, 2009 4:23 AM by Anders Cui

在谈谈VS中的模板中,我介绍了如何创建项目/项模板,这种方式可以在创建项目时省却不少重复性的工作,从而提高了开发效率。在创建好了项目和文件后,就得开始具体的编码了,这时又有了新的重复性工作,就是需要经常编写一些类似或者说雷同的代码,我们需要一种方法将这些代码管理起来,减少重复输入。这就是本文要介绍的Code Snippet,它可以看作是代码片段的模板,在粒度上比项目/项模板更小,可以进一步提高了工作效率。

# 善用VS中的Code Snippet来提高开发效率

Wednesday, August 12, 2009 1:46 AM by Avril


# Code Snippet 代码智慧的结晶

Sunday, November 29, 2009 8:01 AM by Goed

善用VS中的CodeSnippet来提高开发效率 前言在谈谈VS中的模板中,我介绍了如何创建项目/项模板,这种方式可以在创建项目时省却不少重复性的工作,从而提高开发效率。在创建好了项目...