How to cancel autocomplete in Visual Studio 2015 by pressing “Space”?

五迷三道 提交于 2019-11-29 09:08:35

The Escape key will cancel intellisense and allow you to continue typing anything you want without interferences. Just tried it on VS2013 to confirm.

As to the "{" being closed with a "}", this is usually caused by an extension such as Resharper, MS PowerTools, or similar.

To disable autocomplete you can use:

Edit->IntelliSense->Toggle Completion Mode(Ctrl+Alt+Space)

This will also disable it for all characters. This suits me but may not be exactly what you are looking for, VS2013 allowed you to select which characters and specifically Space I'm not sure why this was removed.

To Disable brace completion:

Tools->Options->Text Editor->C#->General->Automatic Brace Completion

If you run Resharper, check Resharper > Options.

Under Environment > IntelliSense > Completing Characters.

Uncheck "Complete on space" for the desired language.

There is a way to turn off this particular behavior in Visual Studio 2015, while leaving the completion fully functional. However, this works only with some languages. In options:

Text Editor -> [your language] -> IntelliSense -> 'Only use Tab or Enter to commmit'

Worked for me for the Java Script editor, but there is no equivalent to C# (where I personally don't find this feature as annoying.

In Visual Studio Community Edition for Mac :

Text Editor -> IntelliSense -> Uncheck 'Complete with Space or Punctuation'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!