Category Archives: .NET

Snippy for your C# Code Snippets

For those of you working with Visual Studio 2005, you’ve no doubt discovered the awesome power of Code Snippets, as well as the ability to design your own Code Snippet templates. Unfortunately, for those of us developing in C#, Microsoft kind of forgot about us when they decided to create a code snippet editor tool.

Code Snippet example

After a bit of Googling, I came across Snippy, a tool for generating Code Snippets for C# developers. So far, I’ve used it for some fairly simple templates, and it seems to work pretty well. The documentation was a little less-than-useful however, and I ended up loading Microsoft’s code snippet files as examples to see how to build my own template.

The UI is basically laid out as the XML tags would be generated, but it is definitely a time-saver over writing straight XML – once you do get past the 5 – 10 minute learning curve.

Regular Expressions… Buwhaa??

Here is an interesting CodeProject article dealing with .NET regular expressions that also includes information about a nice Regex utility application.

I learned the concept of regular expressions from my Computer Science courses in college, so I understand the value of them when validating some sort of input. But I’m sorry to say I’ve never taken the time to learn how to use regular expressions in .NET.