Can't turn on intellisense in visual studio for Unity (ubuntu 18.04)

I set visual studio code as an external script editor, but i can’t use intellisense when I work with scripts.


In this exemple i want to write “Rigitbody2D.”

In this exemple i want to write “monster = GetComponent();”

As you can see i can’t use intellisense in my unity code.

How I can fix this?

Hi, i have the same issue, please let me know if you fixed it, Thanks.

  • Do NOT install VS Code from Flatpak (last time I checked it didn’t work with Omnisharp).

  • Install the .NET SDK and runtime from here (select the Ubuntu version you’re using).

  • Install the C# extension into VS Code.

  • Select VS Code as your external script editor into Unity’s settings (you might have to put the path manually if Unity doesn’t find it).

  • Open your project into Unity. From the Assets menu, select Open C# Project. This will launch VS Code and you should have intellisense working.

Don’t forget to Add “Visual Studio Code” plugin from the package manager as well.
And remove vs code generated files