# Monday, November 29, 2004
« Tip of the Day: Converting an integer to... | Main | Tip of the Day: Sending Ctrl-Alt-Delete ... »

This is a pretty simple tip (or set of tips) but one in which if you don't know, you're going to be glad to find them out.

First, depending on how your profile is set up in Visual Studio, you can type Ctrl-space to get the Intellisense to come up. If there's only one possible option, it will go ahead and type the rest out for you. For example, type “Sy” in the Code behind editor, and press Ctrl-space. You should see a ton of “System” options you can select from to complete the word.

OK, that was easy, right? Well, here's a little one which is often overlooked: creating an alias in your using statement.

Typically, you might set up your “includes” as follows (in C#).

using System.XML;

That works great if you are really familiar with the object model, and know what public method/member you want. Suppose you don't? You can do this:

using MyXML=System.XML;

Now, when you type MyXML, you can get the full Intellisense for the System.XML without having to type all that (or guess). Simple, but great for working with new workspaces.

Comments are closed.