143

I have a pretty annoying problem with the IntelliSense in Visual Studio 2010:

Every now and then (but not always - just out of my control) the Intellisense engine chooses to "mark" an option, instead of actually selecting it. This means that instead of typing e n Enter to access the default option starting with "En...", I have to type e n down Enter.

Usually it works like this for a while, and then, suddenly, the behavior I want is back. My conclusion is that there is some option somewhere that is set automatically, and that I don't know how to control.

How do I make sure that the default option is always selected, and not just "marked"?

For reference: This is Visual Studio 2010 RC, with CodeRush Xpress 10.1.

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402

7 Answers7

280

Try Ctrl-Alt-Space.

found that on Connect, and seems to work for me

Stephan Bauer
  • 9,120
  • 5
  • 36
  • 58
devio
  • 36,858
  • 7
  • 80
  • 143
  • 3
    Microsoft articles tend to disappear after a while. It would be nice to explain a little why and how – AaA Aug 06 '18 at 02:53
81

It can also be changed by going to Edit -> IntelliSense -> ToggleCompletionMode

Machet
  • 1,090
  • 8
  • 17
  • 2
    plus one for finding an alternative way for those who may have changed their shortcuts. – Daniel Casserly Jul 09 '15 at 09:04
  • 1
    Thank you. I might have ignored Ctrl+Alt+Space thinking it could never be a permanent fix, but that it would only affect what you're currently typing. Even though it turns out to be the same thing as this, this caught my eye and helps me understand what I'm doing. – Timo Nov 17 '15 at 11:57
  • 6
    vs2017, still works. And it still turns itself off randomly... this bug has been here a long damn time. – Douglas Gaskell Feb 20 '18 at 01:41
  • @DouglasGaskell I won't write off the possibility that I fat fingered Ctr+Alt+Space instead of it changing randomly. – S. Buda Jun 25 '18 at 15:28
  • 1
    Works with vs2019 which I thought was broken at some point. Thanks, you saved my nerves every time i write a C# property! – Andrii M4n0w4R Aug 20 '19 at 05:49
  • @DouglasGaskell apparently still there and turns itself off randomly. Any updates on this? – KeyC0de Sep 15 '20 at 15:32
19

I had the same problem, but find pressing TAB always selects the default selection.

Stephan Bauer
  • 9,120
  • 5
  • 36
  • 58
cyberspy
  • 1,023
  • 11
  • 13
  • 1
    True. But you still have to press period to bring up the member's list. One extra step :( – Tomas Beblar Jan 05 '16 at 18:36
  • 2
    @Tomas. Of course you do - all of the solutions above rely on that. Imagine if that didn't happen. You start typing the name of a variable, which in the first few letters could match several variables with similar names but different types, and ALL the members for all those types popped up automatically. Pressing a period key may be an extra step but it saves your sanity! – cyberspy Jan 14 '16 at 12:14
9

For completeness, this option has a toggle button up on the toolbar:

Toggle Completion Mode toolbar button

Its visual status will tell you which completion mode is currently selected.

canton7
  • 37,633
  • 3
  • 64
  • 77
  • While probably true, and valuable info today, I'm a little impressed that you found this >10-year-old question to write this :) – Tomas Aschan May 15 '20 at 15:34
  • It's top of the "related" list for similar questions, and pops up quite nicely on search. It's still relevant despite being a decade old! – canton7 May 15 '20 at 15:35
  • WTH! Simple and straightforward. Thanks. VS2019. – bolkay May 19 '20 at 17:29
3

For C++ at least,

Tools / Options / Text Editor / C/C++/ Advanced / IntelliSense

and change Member List Commit Aggressive to True

Bogdan
  • 461
  • 4
  • 10
  • 1
    Thanks a lot! I was going mad because I couldn't find this option! Maybe they can rename this option, because it is a bit hidden with its current name. Or at least make it active by default... – Lapo Dec 02 '19 at 22:28
2

You might switched into low- impact IntelliSense mode, just hit Ctrl+Alt+Space and it will solve the problem.

zalky
  • 659
  • 1
  • 7
  • 12
0

You should just do it : Edit / IntelliSense / Toggle Completion Mode

I can Solve it with this Solution