When I edit the C# Unity Scripts, they open in Visual Studio. I've noticed that the autocomplete works on some lines but it doesn't in others.
Here you can see what's going on:
As you can see I get the autocomplete for GetComponent
function only when I type inside the line 19.
I also tried this:
By moving the whole Start()
function, autocomplete seems to work, but when moving back to the original place, it seems to stop working again.
By further testing, I noticed that autocomplete does not work on lines 11 through 14 and works on any other line.
I tried updating Visual Studio, deleting and recreating the C# Script, regenerated the project files and even reimporting all assets. Nothing worked.
Unity Version: 2020.2.7f1 Visual studio: 8.9.2 OS: macOS 11.2.3