"We live in an exciting time. The Internet has become almost ubiquitous throughout much of the world, bringing with it freedom of information and an unprecedented power to all. My passion is seeing businesses leverage that power effectively and economically." - Dave Ranck

May
16

Snippet Designed for VS 2008 and VS 2010

By Dave Ranck

I love code snippets. Way back in the early VB days, I created add-ins for the IDE that allowed me to create and save an array of short snippets of code and automatically insert them into the code window. I like to use snippets for things that I either don’t use often enough to remember, or to quickly enter templates for things I use a  lot to save time. Visual Studio .Net has a Snippet Manager and lets you create snippets in XML, but there is no built-in editor. There are a couple of editors available, some stand-alone and at least one called Snippet Designer that is integrated into the IDE. Snippet Designer gives you an explorer to find snippets on your drive and a nice editor for creating and saving snippets. One nice feature is you can highlight a section of code and save it as a snippet. Quick and easy. The designer allows you to quickly mark the replacement sections of the code set other properties and will create the “surround” type of snippet. Here’s a screentshot:

Snippet Designer

The Snippet Desginer IDE

I like this tool. I have had a few small issues with getting the tool to index alternate snippet folders, but that is a small thing compared to its usefulness. Try it. I think you might like it as much as I do.

Snippet Designer can be downloaded from http://snippetdesigner.codeplex.com/

Technorati Tags: Add-in, Code, Programming, Software Development, Tools, Visual Studio

  • Share/Bookmark

Related posts:

  1. Find a String Between 2 Strings
  2. Create Singleton in C#
  3. Restore SQL Database
  4. Using Rational XDE with Visual Studio .Net

Leave a Reply

Sponsored By :

 

 

Material in this site unless otherwise noted is Copyright David Ranck 2009, 2010