Not autocomplete/Intellisense on VSCode with Unity 2019.3.0a8

I’m having some really strange issues with auto-complete on VSCode on unity.

It works on some older projects but does not work on any projects regardless of what version of unity the new project is on.

I’ve tried everything.Went through the forum and re-installed VSCode, installed Mono (Though I’m on windows), installed everything from Visual Studio Code and Unity, tried opening folder from VSCode and tried right clicking the script then “open c# project” and nothing works.

I don’t understand as it worked 2 months ago when i used it.

I am currently using Visual Studio Community but it’s now saying that My trial is about to expire :frowning: and I prefer VSCode.

Is anyone from Unity able to support me with this? please.

1 Like

nobody from Unity can tell me why VSCode Intellisense wont work with Unity anymore?

2 Likes

Same. Just updated to 2019.3 and intellisense is not working at all.
Also the namespaces are messed up for me.

2 Likes

2 months later and there is still no solution for this…

Every time i update unity, a massive headache is involved.

3 Likes

Still an issue, no auto complete -.- what an unusable garbage this new 2019.03 version

1 Like

Assuming you have setup everything else correctly:

  • Delete all your .csproj and .sln in project folder
  • Create a new script in Unity, to force it to regenerate these files again
  • Reload your project in vs code.
  • See if it fixes your issue, it did for me.
4 Likes

Recreating sln to include csproj assembly worked for me.
Delete the files if you have them and temporarily set the editor to “Visual Studio”.
The editor shows checkboxes to generate csproj and add to sln.
This is within Unity → Preferences → External Tools.

1 Like

Reverting the “Visual Studio Code Editor” package from 1.1.4 to 1.1.3 fixed the issue for me.

3 Likes

How did you do that?

Edit:
Just found it! :slight_smile: And it worked for me!
And for others that’s also new to Unity you find it by opening the Window menu and select Package Manager. Then you should see the package Visual Studio Code Editor package with version 1.1.4 installed. Click on the arrow to the left and select “See all versions”. Select the 1.1.3 version and click on the button “Update to 1.1.3” in the lower right corner of the dialog.

3 Likes

yap, that solve the issue for me too. but every time i upgrade unity i have issues with vs code. unity should solved that for good!

This worked for me too, thanks!

1 Like

This essentially worked for me, as well. I was on VSCode Editor 1.2.0, reverted to 1.1.3, which did not fix it, but then returned to 1.2.0, which fixed it.

I believe removing and reimporting 1.2.0 also would have resolved it.

Thank you so much, this solution worked! I hope they smooth this out in an upcoming release.

Thank you!

Switching the editor in preferences to Visual Studio and then switching it back to Visual Studio Code, also worked for me.

Switch to Visual Studio.
Go to: Edit -> Preferences -> External tools -> External Script Editor -> set it to Visual Studio.
Open a Script in Visual Studio.

Then switch it back to Visual Studio Code.
Go to: Edit -> Preferences -> External tools -> External Script Editor -> set it to Visual Studio Code.
Open a script in Visual Studio Code. See it works.

Maybe it is not even necessary to reopen the scripts and the editor switch will just do the trick.

1 Like

To get code hinting working correctly I had to update the vs code C# plugin “Use global mono” from “Auto” to “Always”

Hope this helps

5 Likes

Blessed answer! Did solve my problem!!!

Perfect!! Autocomplete working now!

Thanks! That fixed it for me

still helping :smile: