Using the New IntelliSense: Keywords

Tips Search

If you like the tips then you'll love the book!

Order your copy today:
http://www.amazon.com/gp/product/0735649928

Using the New IntelliSense: Keywords

  • Comments 3

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:

image

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:

image

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?

  • 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).

  • 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.

    Z

  • Is this a C# only feature? I don't see that it's working for C++.

Page 1 of 1 (3 items)
Leave a Comment
  • Please add 2 and 5 and type the answer here:
  • Post