Megosztás a következőn keresztül:


IntelliSense Suggestion Mode

Keyboard:  CTRL + ALT + Spacebar
Menu:  Edit -> IntelliSense -> Toggle Completion Mode
Command:  Edit.ToggleCompletionMode
Versions:  2010
Published:  1/22/2010
Code:  vstipEdit0012

 

IntelliSense comes in two modes:  Completion and Suggestion.  You are already familiar with IntelliSense Completion mode, it's the traditional mode that we have all used for years.  But if you are into Test Driven Development (TDD) then Completion mode can be very annoying at times.  As a TDD developer we often use classes and members BEFORE they exist.  It's pretty annoying when you go to type the name of something that doesn't exist and you get IntelliSense.  Especially since you sometimes will accidentally get a an option you didn't want:

image

 

The solution is Suggestion mode.  Just hit CTRL + ALT + Spacebar to go into this mode:

image

 

Now you get the best of both worlds:  You can type in a name that doesn't exist AND have quick access to the Completion mode options as well.  The dangers of getting an option you don't want are removed.  Pretty cool stuff.

Comments

  • Anonymous
    January 21, 2010
    Hey Now Zain, IntelliSense is great! Thx 4 the info, Catto

  • Anonymous
    January 05, 2011
    Thanks a lot ! I was blocked on Suggestion Mode, it was a big pain, i prefer Completion Mode.

  • Anonymous
    May 17, 2011
    Can you turn this off? For some reason it kicks in pretty often and I really don't like it.

  • Anonymous
    August 17, 2011
    Hey Quiark, To my knowledge there is currently no way to turn this feature off in VS2010 other than the keyboard shortcut.   Z

  • Anonymous
    May 01, 2012
    I'm very glad to know how to turn auto-completion off, but I have to comment on the mindset of this explanation! "if you are into Test Driven Development (TDD) then Completion mode can be very annoying at times" - Oh my! I must be really "into" TDD, then! ;-)

  • Anonymous
    May 01, 2012
    Yeah good point.  There are others who aren't into TDD who may want to turn this off too. :) Z

  • Anonymous
    May 09, 2012
    Thanks man, I must have accidently pressed these same buttons to get into the wrong mode.

  • Anonymous
    August 15, 2012
    I've tried to find a way to save the setting of this, since I'm getting annoyed at having to press ctrl+alt+space every time I load VS. But no luck. If there is no such way the devs should really add it!

  • Anonymous
    January 28, 2013
    Its really annoying to always turn this off. There should be a way to turn this off permanently.

  • Anonymous
    May 02, 2013
    This is nice, I was very mad about this, thanks