27

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

Looks like there is no such option.

When I see intellisense auto-complete list and press "Space" VS automatically print highlighted item. I want cancel it. VS 2013 doesn't behave itself like that.

Plus when I press "{" VS 2015 automatically print right "}" I would cancel it too.

Language c#.

If you want fix it vote for https://visualstudio.uservoice.com/forums/121579-visual-studio-2015/suggestions/9319764-visual-studio-2015-cancel-intellisense-autocomple

thedriveee
  • 609
  • 3
  • 9
  • 22

5 Answers5

25

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

Scott Logan
  • 1,518
  • 2
  • 17
  • 34
9

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.

Martin Noreke
  • 4,066
  • 22
  • 34
6

If you run Resharper, check Resharper > Options.

Under Environment > IntelliSense > Completing Characters.

Uncheck "Complete on space" for the desired language.

drsbee
  • 96
  • 1
  • 3
4

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.

mikus
  • 3,042
  • 1
  • 30
  • 40
1

In Visual Studio Community Edition for Mac :

Text Editor -> IntelliSense -> Uncheck 'Complete with Space or Punctuation'
  • I was looking for a way to just hit escape to exit the autocomplete dropdown, but this works just as good for VS community IMO. If I want the autocomplete, I'll just hit tab. – solstice333 Feb 02 '19 at 04:53
  • 1
    That doesn't seem to exist in 2019. Does it exit somewhere else in the options? – Hypersapien Dec 27 '19 at 15:06
  • @Hypersapien it does not exist except under a couple languages. Best option is disable "Show completion list after a character is typed". You can still get the completion list by typing Ctrl-Space. – Alan Baljeu Feb 14 '20 at 21:32