Using the ClassName() snippet function – an operator declaration snippet example

A previous tip of the week mentioned how to use the SimpleTypeName() snippet function.  Here’s how to use the SimpleTypeName() function alongside the ClassName() function.  The ClassName() function will automatically substitute the name of the outer class.  For example, if you had class Class1 { } You could make a snippet that used the ClassName…


Getting more space between your variables and their declarations in C#

Let’s say you want to keep your formatting rules enabled, but want to get some additional space between your variables and their declarations. You can put a C-style inline comment in the whitespace between the two. For example, class Class1 {    int/**/ a = 1;    int/**/ b = 2; }   Note that you could do…


How to change the generated method stub code for C#

Before you apply this tip… I strongly recommend that you backup any snippets installed by VS that you may want to modify.  Take it from a former code Snippet QA that you will want to do this. This tip requires having access to your Program Files directory, so use appropriate caution Do not change the…


Customize your Find in Files Results experience!

Another awesome hidden editor feature… You can customize your Find in Files results to show what you want to see and how you want to see it. Example:  You don’t want to view the entire file path shown in the Find Results tool window. Find all "using", Match case, Whole word, Subfolders, Find Results 1,…


Emacs and Brief Emulations Updates Available

Dylan, one of our editor devs, has posted some workarounds to Emacs and Brief Emulations bugs on GotDotNet. The Brief Emulation Add-in addresses the following issues: Bug FDBK38309:  BRIEF editor emulation for cut with no selection incorrect  Bug FDBK40426:  Paste of code block incorrectly indents first line  Bug FDBK40415:  Brief mode inline paste changes to…


MSBuild Extras – Toolkit for .NET 1.1 “MSBee” Beta 1 Released!

The Developer Solutions team (the team I joined 4 weeks ago) is proud to announce the release of MSBuild Extras – Toolkit for .NET 1.1 “MSBee.”  MSBee is an addition to MSBuild that allows developers to build managed applications in Visual Studio 2005 that target .NET 1.1. You can download MSBee from the project homepage…


The top 10 most visited tips

Today’s post marks the 100th Tip on the Tip of the Week!  To celebrate the occasion, let’s recap our top 10 most visited* tips. #10 – How to bind Keyboard Shortcuts to commands #9 – How to do column selection #8 – What C# books to read #7 – How to optimize Visual Studio for…


Disable Add-ins on Start-Up by holding the Left-Shift key down

If you ever want to disable add-ins from starting on launch, you can hold down the Left-Shift key while VS is loading.  If you find yourself running into random crashes, you might want to try disabling add-ins (either by this Left-Shift method or going to the Tools – Add-in Manager) to determine if it is…

VS Macro to Build a Web.SiteMap file from your project system file layout

Today’s tip comes from Scott Allen’s blog.  Scott has provided a VS 2005 macro that will dynamically build a web.sitemap file based on the files in your project. For any questions related to ASP.NET, please check out the ASP.NET forums! Got an ASP.NET Tip?  Submit it here! Happy Visual Studio’ing!


Visual Studio 2005 Automation Samples are now available!

You can find the VS 2005 Automation Samples at If you have any questions regarding the samples, you can ask them at the Extensibility Forum. Happy Visual Studio’ing! Tags: VSTips ReferencesSuggest a Tip!