visual-studio Visual Studio 2010 IntelliSense 不选择默认值 - 它只是标记它
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2639481/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual Studio 2010 IntelliSense doesn't select a default value - it just marks it
提问by Tomas Aschan
I have a pretty annoying problem with the IntelliSense in Visual Studio 2010:
我在 Visual Studio 2010 中的 IntelliSense 有一个非常烦人的问题:
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 enEnterto access the default option starting with "En...", I have to type endownEnter.
Intellisense 引擎时不时地(但并非总是 - 只是超出我的控制)选择“标记”一个选项,而不是实际选择它。这意味着我不必键入enEnter以访问以“En...”开头的默认选项,而必须键入endownEnter.
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.
供参考:这是带有 CodeRush Xpress 10.1 的 Visual Studio 2010 RC。
回答by devio
Try Ctrl-Alt-Space.
试试Ctrl- Alt- Space。
found that on Connect, and seems to work for me
在 Connect 上发现,似乎对我有用
回答by Machet
It can also be changed by going to Edit -> IntelliSense -> ToggleCompletionMode
也可以通过转到 Edit -> IntelliSense -> ToggleCompletionMode 来更改它
回答by cyberspy
I had the same problem, but find pressing TABalways selects the default selection.
我有同样的问题,但发现按下TAB总是选择默认选择。
回答by Bogdan
For C++ at least,
至少对于 C++,
Tools / Options / Text Editor / C/C++/ Advanced / IntelliSense
and change Member List Commit Aggressiveto True
并更改Member List Commit Aggressive为True
回答by rpcalisir
You might switched into low- impact IntelliSense mode, just hit Ctrl+Alt+Space and it will solve the problem.
您可能会切换到低影响 IntelliSense 模式,只需按 Ctrl+Alt+Space 即可解决问题。
回答by canton7
回答by Amir Eskandari
You should just do it : Edit / IntelliSense / Toggle Completion Mode
你应该这样做:编辑/智能感知/切换完成模式


