unity and autocomplete visual studio code


I want to start with Unity but my autocomplete dont work. I think the problem is that I have 2 visual studio codes on my computer. In external script editor I only see visual studio code and not the version. Do someone now how I can fix it?



did you install the C# extension and NDK? also, in the external script editor, you can chose the browse version to select whichever VS code version you wanna use.

refer to this tutorial for setting up intellisense


I followed the video and fix the problem, I didn't know about the output in VS.
The error was something else.

The issue was this:
Could not locate MSBuild instance to register with OmniSharp

And this was the fix :)


1 Like

I found another setting that will cause autocomplete to fail. This typically happens when starting a new Unity project.

In VS Code go to File -> Preferences -> Settings. There search for preferCSharpExtension. Make sure this is unchecked. If it's checked your C# Dev Kit will be disabled and auto complete will not work.

It should look like this:

1 Like