Using the New IntelliSense: Keywords
Keyboard: CTRL + J
Menu: Edit -> IntelliSense -> List Members
Command: Edit.ListMembers
Versions: 2010
Published: 2/8/2010
Code: vstipEdit0016
The one feature we regularly use more than just about anything else in Visual Studio is IntelliSense. It has been our friend for many years. Well it just got more friendly! To show you the new feature, let's take a look at VS2008 IntelliSense. Notice when I type Console.Key what happens:
It does what you would expect it to do and highlights the first (in this case-only) item that begins with the word "Key". That's great but what if I don't know what I am looking for but I know that it has the word "Key" somewhere in it? Well, I can go search in the Object Browser, of course OR I can use the new IntelliSense in VS2010. Watch what happens when i do the same thing in VS2010:
Voila! It now shows only those items that have the word "Key" in them AND doesn't care where the word is in the name of the member! So not only do it get items that begin with "Key" but I get ANYTHING that has the word "Key" in it. Pretty sweet, huh?
Comments
Anonymous
February 07, 2010
That'll definitely come in handy. (I can never remember if it's EmptyRect or RectEmpty etc. :)) How comes there's scrollbar in the VS2010 screenshot? Looks like there are only three items (else the pop-up/list would be taller like the VS2008 screenshot), but then the scrollbar wouldn't be needed (or would be full-height/disabled).Anonymous
February 09, 2010
Leo, Yeah I like it a lot :) As for the scrollbar there were some items in there but not sure why it didn't show them all in favor of the shorter list with scrollbar. ZAnonymous
February 11, 2010
Is this a C# only feature? I don't see that it's working for C++.