Using Visual Studio 2010 New IntelliSense Features
The one feature we use more than just about anything else in Visual Studio is IntelliSense. It has been our friend for many years. The IntelliSense features in Visual Studio 2010 represent a major departure from the old style of using this feature. I will discuss two of the biggest changes. Using Keywords Let’s take a closer look at prior versions of IntelliSense. Notice what happens when you type “Console.Key” in Figure 1.  Figure 1: Prior versions of Intell It does what you would expect it to do and highlights the first (in this case - only) item that begins with the word “Key” in a huge alphabetical list of item names. That’s great, but what if you don’t know what you are looking for but you do know that it has the word “Key” somewhere in it? Figure 2 shows the same thing using Visual Studio 2010. iSense show you a large alphabetical list. Figure 2: Visual Studio 2010 shows entries that contain the keyword.IntelliSense only shows those items that have the word “Key” in them and doesn’t care where the word is in the name of the member. A significantly smaller list of items is shown and results in an easier way to find entries. Pascal Case Ever been in a situation where you wanted to use IntelliSense to get a method but you’re faced with a ton of entries that start with the same word, meaning that you have to type almost the entire method name? Figure 3 shows an example of this scenario.  Figure 3: List of methods with similar names.Well, those days are over. Let’s say you want the SetWindowSize method, but you really, really don’t want to type it out or even scroll down to get the method. IntelliSense now supports Pascal Case. All you have to do is type SWS as shown in Figure 4.  Figure 4: Using Pascal Case with IntelliSense.What if you don’t remember all the upper-case letters in a name? No problem. Just type what you know (they don’t even have to be in the correct order), and IntelliSense narrows the list down for you as seen in Figure 5.  Figure 5: Using Pascal Case to narrow down IntelliSense choices.The New IntelliSense Is Very Cool! Clearly IntelliSense has taken a huge leap forward in Visual Studio 2010. The ability to use keywords and Pascal Case to narrow down choices is a huge time saver when writing code. Spend some time getting acquainted with the new approach and see the benefits for yourself. Mr. Zain Naboulsi Jr | & | | 
By: Mr. Zain Naboulsi Jr
Zain Naboulsi is a Senior Developer Evangelist for Microsoft. He is the co-author of the new Microsoft Press book entitled Coding Faster: Getting More Productive with Microsoft Visual Studio 2005, 2008, and 2010.
For over 15 years Zain has been working with the latest Microsoft technologies. He’s been a consultant and trainer since 1995. Also, he created Online Community Evangelism; which is an effort to build communities in virtual places like LinkedIn, Facebook, and elsewhere. He is not only a proponent of the community aspect of online environments but also is a supporter of the myriad business applications that these new mediums offer. He is a frequent speaker on Visual Studio at events worldwide.
zainnab@microsoft.com Summary Information
Keyboard Shortcut: CTRL + J Menu: Edit | IntelliSense | List Members Command: Edit.ListMembers Versions: 2010, 2010 SP1 Languages: VB, C# IntelliSense History
Since 1996, IntelliSense has been a part of development products. Microsoft first introduced IntelliSense into Visual Basic 5.0 and it has become very popular over its 15-year history. IntelliSense is now included in all major Microsoft development products. Numerous non-Microsoft development products have some form of this concept included in them. |