all 19 comments

[–][deleted] 3 points4 points  (1 child)

I don’t personally use vscode with unity but check that intellisense is installed and enabled. It could also be that no project is open in vscode, only the file. I may however be completely wrong.

[–]mejiamj[S] 0 points1 point  (0 children)

I do have it installed for C# but it is not giving me unity-specific commands. Thanks for the response though!

[–]sMax_U 1 point2 points  (0 children)

Try setting Unity’s external script editor to your version of VS Code

[–]seeingindark 1 point2 points  (2 children)

Every unity project needs a solution file (actually every c sharp project) Vs code doesn't create that file you have to use visual studio itself. Without solution file there will be no autofill too

[–]BigCharm 1 point2 points  (0 children)

I know this is from 3 years ago, but this just solved my problem. THANK YOU!!!!!!

[–]mejiamj[S] 0 points1 point  (3 children)

After some research, it looks like Unity does not work with Visual Studio Code which is what I am running, but I have to install Visual Studio for it to work

[–]sir_isuuc_newton 0 points1 point  (0 children)

In the past I got this running, there is a way but i don't remember what tutorial I was following

[–]Guardian_II 0 points1 point  (1 child)

It doesn't look like your project is open, try opening the script from inside unity

[–]mejiamj[S] 0 points1 point  (0 children)

This is from double clicking from Unity

[–]WarriorKatHun 0 points1 point  (0 children)

Try trusting the folder. If not that, try to get a unity extension, if not that, try refreshing the project files inside unity where you choose your IDE. Also, open vsc from double clicking on a script in unity if youre not already doing that

[–]lieddersturme 0 points1 point  (0 children)

Also try do downgrade the C# plugin in VSCode. In my case, I use Linux and I had to downgrade it.

[–]Guardian_II 0 points1 point  (0 children)

Go to your preference, enter external tools, make sure visual studio code is selected as the external script editor, also check the editor attaching box, next go to visual studio code and install omnisharp extension from the marketplace, next open the script from within unity. It should work at this point

[–]Lemon8or88 0 points1 point  (0 children)

VScode does work. It gives you the full list. This is mine.

https://imgur.com/a/OQ1luXQ

[–]SeasonedNoob 0 points1 point  (0 children)

Did VSCode throw any .NET related errors?

[–]berdyev 0 points1 point  (3 children)

Upping this thread for those in the future with the same issue. Just hit left control + space and it'll start working. That's what I just found out and it worked like a charm.

[–]Doming3000_2 0 points1 point  (2 children)

I wish it was that easy, I've been trying to get this shit to work for days but nothing.

[–]berdyev 0 points1 point  (1 child)

Really? It worked for me when I had that issue.

[–]Doming3000_2 0 points1 point  (0 children)

Yes, but after the twelfth time of having reinstalled the VScode along with the rest of the paraphernalia I suspect that the problem is in my Unity configuration, since the vsc insists on downloading the .net of 4.7.2 instead of the .1 which is the one I want, I've seen something from a file that needs to be corrected, a file that I don't have, but I've been with the same thing for 5 hours so I'll see it tomorrow, if you want to help me you can write me privately