Visual Studio 2010 IntelliSense doesn't select a default value - it just marks it
Asked Answered
I

7

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.

Ibadan answered 14/4, 2010 at 17:12 Comment(1)
@devio: did you ever find out why?Ibadan
M
280

Try Ctrl-Alt-Space.

found that on Connect, and seems to work for me

Marked answered 23/4, 2010 at 9:42 Comment(1)
Microsoft articles tend to disappear after a while. It would be nice to explain a little why and howSolicit
K
81

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

Kareykari answered 6/11, 2014 at 20:31 Comment(6)
plus one for finding an alternative way for those who may have changed their shortcuts.Gaius
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.Amplexicaul
vs2017, still works. And it still turns itself off randomly... this bug has been here a long damn time.Broddie
@DouglasGaskell I won't write off the possibility that I fat fingered Ctr+Alt+Space instead of it changing randomly.Turgite
Works with vs2019 which I thought was broken at some point. Thanks, you saved my nerves every time i write a C# property!Alcorn
@DouglasGaskell apparently still there and turns itself off randomly. Any updates on this?Suitcase
V
19

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

Vasti answered 19/3, 2013 at 9:16 Comment(2)
True. But you still have to press period to bring up the member's list. One extra step :(Proverb
@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!Vasti
G
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.

Girosol answered 15/5, 2020 at 14:26 Comment(3)
While probably true, and valuable info today, I'm a little impressed that you found this >10-year-old question to write this :)Ibadan
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!Girosol
WTH! Simple and straightforward. Thanks. VS2019.Wealth
C
4

For C++ at least,

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

and change Member List Commit Aggressive to True

Coffelt answered 19/11, 2019 at 10:3 Comment(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...Compeer
E
2

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

Ensoul answered 16/10, 2019 at 13:32 Comment(0)
G
0

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

I can Solve it with this Solution

Guffaw answered 5/1, 2020 at 17:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.