I am using Unity 2018 with Visual Studio Code version 1.43.2 on a Mac.
Things seemed to work fine between Unity and Visual Studio Code, but now I realize that something is wrong with Code. I have been following along with a tutorial and the autocompletion functionality of Code seemed fine until the function OnTriggerEnter
, which was shown as autocompleting for the guy in the video (who was using the other Visual Studio), didn't fill in. However, many other Unity things do automatically show up as options.
I looked at this Microsoft help page about VS Code and Unity, and I have everything it I seems I would possibly need to combine the two; I have .NET, Mono, Debugger for Unity, the C# extension, and got Unity Tools for good measure.
Generic C# things like return
, void
, int
, etc. autocomplete, so the C# extension seems fine. Many Unity things, like Vector3
, GameObject
, Destroy
, transform
, etc. also autocomplete like they should.
What is wrong here? How can I fix this and get full autocomplete?