次の方法で共有


Greatest Hits: Using Visual Studio 2010 IntelliSense with 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:

clip_image002

 

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:

clip_image004

 

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.

Comments

  • Anonymous
    December 01, 2011
    That must be a Plugin, in my Visual Studio 2010 (Premium) doesn't work it!

  • Anonymous
    December 13, 2011
    @Mark : I do not think so, I am using Visual Studio 2010 (Professional) and I am able to simulate this trick...

  • Anonymous
    December 14, 2011
    The comment has been removed