Geeks With Blogs
Chris Martin's Blog A Developer and so on...
So Visual Studio is finally catching up to the tools that I've been using for years. I can't really blame MS for only coming out with these features now. This is a huge company that doesn't release their products every 3 months. What I can do is be a little angry that while they did us a favor by integrating some things into the IDE, they just did it a little sub-par. Now, if anything I'm about to write is wrong, I'm sure some gracious soul will correct me and I'll give my appologies. Onto the meat... OK. Visual Studio 5005 gives us a great, nifty little feature called "Code Snippets". Basically they are code templates that can generate a bunch of boring code with the least amount of work. Cool. But, the technology doesn't seem to want to give me any control of said code. Take the following very simplistic and reasonable example: I want the snippet to create this code (I'm serious ;))
private string title;

public string Title
get { return title; }
set { title = value; }

So I took the plunge and created this snippet (I'm just showing the CDATA part not the whole XML file.): public $type$ $variableName$; public $type$ $variableName$ { get { return $variableName$; } set { $variableName$ = value; } } My problem with this is that I can't find a way to capitalize the property name. I can't find a way to do it! With QuickCode (RIP for me) or ReSharper this a very easy task. I've got to be missing something here. Who's gonna show me the MS light? Cheers... Posted on Tuesday, November 29, 2005 11:46 AM .NET | Back to top

Comments on this post: Visual Studio 2005 Code Snippets?

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Chris Martin | Powered by: