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…

3

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…

1

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…

4

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,…

12

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…

3

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…

5

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…

5

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…

0

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!

1

Visual Studio 2005 Automation Samples are now available!

You can find the VS 2005 Automation Samples athttp://www.microsoft.com/downloads/details.aspx?FamilyId=79C7E038-8768-4E1E-87AE-5BBBE3886DE8&displaylang=en If you have any questions regarding the samples, you can ask them at the Extensibility Forum.http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=57&SiteID=1 Happy Visual Studio’ing! Tags: VSTips ReferencesSuggest a Tip!

1