Snippet Editor 2008 release

Posted Tuesday, November 06, 2007 9:49 PM by bill

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

 Note this release requires .NET 3.5.

 

Changes/fixes:

  • 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 (http://billmccarthy.com/Projects/Snippet_Editor)

Enjoy :)

Filed under: , , , , ,

Comments

# 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

Hi,

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