1
votes

Visual Studio 2015 Community is all of a sudden behaving a little differently with its function completion

Normally I'd start typing for example:

Void Sta

At this point Autocomplete kicks in:

enter image description here

Now when I press enter, what should happen is only the word is autocompleted so I would simply end up with void Start

However what ends up happening instead is this:

private void Start()
{

}

I've looked around everywhere in the settings menu and can't find anywhere to disable this. I've tried toggling on and off suggestion/autocomplete modes (Ctrl+Alt+Space), this does not do what I want.

3
does your issue is solved or not? - Sara Liu - MSFT
Hi @Sara-MSFT no unfortunately I can't find it in the Code Snippets Manager - Arvin

3 Answers

2
votes

"Finally figured it out, this is actually caused by the 'Tools for Unity' addin for Visual Studio. They must have recently updated the tools to include a new feature which does this. To switch this off, go into the Tools > Options window then expand 'Tools for Unity' and disable Unity Messages code completion"

Didn't work for me - in the same menu, I had to change Unity Messages scope to Default. Now it works. (VS 2017)

0
votes

This seems a code snippets instead of auto complete. You can try to manage code snippets in the Code Snippets Manager. (I'm not sure that you can disable this snippet.)

Tools\Code Snippets Manager

enter image description here

0
votes

Finally figured it out, this is actually caused by the 'Tools for Unity' addin for Visual Studio. They must have recently updated the tools to include a new feature which does this.

To switch this off, go into the Tools > Options window then expand 'Tools for Unity' and disable Unity Messages code completion