How to cancel autocomplete in Visual Studio 2015 b

2019-01-27 12:41发布

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

5条回答
该账号已被封号
2楼-- · 2019-01-27 13:07

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

查看更多
甜甜的少女心
3楼-- · 2019-01-27 13:07

In Visual Studio Community Edition for Mac :

Text Editor -> IntelliSense -> Uncheck 'Complete with Space or Punctuation'
查看更多
聊天终结者
4楼-- · 2019-01-27 13:21

If you run Resharper, check Resharper > Options.

Under Environment > IntelliSense > Completing Characters.

Uncheck "Complete on space" for the desired language.

查看更多
唯我独甜
5楼-- · 2019-01-27 13:22

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.

查看更多
Summer. ? 凉城
6楼-- · 2019-01-27 13:26

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.

查看更多
登录 后发表回答