Alex Rivera | Logout

How to get VS10 Intellisense to complete suggested member on enter?

Asked 2009-08-13T23:25:19.797
15

I have been trying out the CTP Beta 1 of Visual Studio 2010 and I hate that VS10 doesn't autocomplete the best match when i press 'enter', or '.'. Visual Studio 2008 did this, and I haven't been able to find any options for this under Tools -> Options -> Text Editor. It kinda breaks my flow each time when I press enter (and get a new line), and I never really seem to get used to it. It's not too great having to press up, then down, then enter, to autocomplete the suggested member name. Also if there is any shortcut to autocomplete the (not selected) keyword, I'd be happy with that too.

Edit
Report

1 Answer

22

As aaaaaa said, there are two modes of IntelliSense in Visual Studio 2010.

The one you are used to is called stardard mode and it works similarly(1) as in previous versions.

The new mode is called consume-first mode and is intended to ease life for those who code using types and members before they're defined. TDD practicioners use that a lot.

In Beta 1, you can toggle between the two modes pressing CTRL+ALT+SPACEBAR.

You can find more information about these changes at:

(1) When I stated above that it works similarly, that because in addition to working as it did before, there's an enhanced searching algorithim that can ease the finding of the member you want.

Let's say you want to print a line to the console. You would use:


Console.WriteLine("....");

When typing that you could do any of the following:

  • Type Console.WriteL and press Enter (2)
  • Console.WL and press down arrow key to the WriteLine member and then press Enter (2)
  • Console.line and press the down arrow key to the WriteLine member and then press Enter (2)

(2) You can press Enter or any of the characters define in Tools -> Options -> Text Editor -> C# -> IntelliSense

answered 2009-08-16T11:32:08.067

Your Answer