More code snippets for C#

Did you notice that VB.NET has way more code snippets out-of-the-box than C# in Visual Studio 2005?

This can be fixed though. Through Scott Guthrie's blog post on code snippets I found a link to download C# versions of those VB snippets. You can download snippets for certain categories only or you can download all snippets at once.

After downloading and installing, I added the snippets to Visual C# through the Code Snippet Manager. I had to add the directory %USERPROFILE%My DocumentsMSDNVisual C# 2005 Code Snippets. Read this MSDN page on how to manage code snippets.

This is what gets added if you add all categories:

Screenshot of all newly added code snippet categories in C#

One thought on “More code snippets for C#

Leave a Reply

Your email address will not be published. Required fields are marked *