问题
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.
回答1:
Try Ctrl-Alt-Space.
found that on Connect, and seems to work for me
回答2:
It can also be changed by going to Edit -> IntelliSense -> ToggleCompletionMode
回答3:
I had the same problem, but find pressing TAB always selects the default selection.
回答4:
You might switched into low- impact IntelliSense mode, just hit Ctrl+Alt+Space and it will solve the problem.
回答5:
For C++ at least,
Tools / Options / Text Editor / C/C++/ Advanced / IntelliSense
and change Member List Commit Aggressive
to True
来源:https://stackoverflow.com/questions/2639481/visual-studio-2010-intellisense-doesnt-select-a-default-value-it-just-marks-i