简体   繁体   English

如何在Visual Studio 2013 C#中停止自动完成

[英]How to stop auto complete in Visual Studio 2013 C#

I'm having trouble with the auto completion in Visual Studio (C#), because it keeps completing stuff I dont want it to. 我在Visual Studio(C#)中的自动完成功能上遇到了麻烦,因为它会不断完成我不想要的内容。 For example if I do int x = z; 例如,如果我做int x = z; Then when I press z it suggests "DivideByZeroException", and if i press ; 然后当我按z时,它提示“ DivideByZeroException”,如果我按; then it chooses this completion. 然后选择此完成。 I only want to accept the marked auto completion with enter. 我只想接受带有Enter的标记为自动完成。 How can I do this? 我怎样才能做到这一点?

This is not possible in C#. 这在C#中是不可能的。 You can do it in C++ like this . 您可以像这样在C ++中做到这一点

You'll have to press Esc to close the AutoComplete box before pressing ; 您必须先按Esc键才能关闭“自动完成”框,然后再按; .

BTW I think if you had Resharper you could do it. 顺便说一句,我认为如果您有Resharper,就可以做到。


As you mentioned you do have Resharper, you can configure your completion characters from 正如您提到的,您确实有Resharper,可以从
ReSharper | Options | Environment | IntelliSense | Completion Characters
as documented here . 这里记载

Go to Tools>Options>TextEditor>General UnCheck That you don't want. 转到“工具”>“选项”>“ TextEditor”>“常规”,然后单击“取消选中”。 You can also check All Languages section 您还可以检查所有语言部分

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM