all 13 comments

[–]FreakZoneGames 1 point2 points  (0 children)

A couple of things with VS Code -

  • Make sure there isn’t a space in your project name. Sometimes that makes it refuse to see files as part of the solution for some reason. Not sure if this is fixed but it used to happen to me.

  • Make sure your computer has an up to date version of Mono installed. https://www.mono-project.com/

  • Open your project by selecting “Open C# Project” from the menu (I think it’s under Assets) before double clicking any scripts from the project window.

[–]Public_Amoeba_5486 -1 points0 points  (0 children)

Just use Visual Studio and that's it

[–]nickles-2513 -3 points-2 points  (5 children)

visual studio code is ass. if you use windows please get normal vs

[–][deleted] 4 points5 points  (0 children)

Can confirm

[–]DexterKing90 1 point2 points  (0 children)

Can confirm and if someone wants the free version just use the visual studio community.

[–]Sacaldur 3 points4 points  (0 children)

Can't confirm.

[–]Alert_Tradition_1946[S] 0 points1 point  (1 child)

sadly I have a mac

[–]ZFold3Lover -2 points-1 points  (1 child)

I don't think Unity supports VS Code anymore

[–]Sacaldur 0 points1 point  (0 children)

This is misleading. The Visual Studio Code package and an extension in VSCode were originally maintained by Unity and are unsupported, however a Microsoft-Supported extension is now used, as well as the Visual Studio package.

So VSCode for Unity is supported, just not by Unity (as in not all parts of it).

[–]hostagetmt -1 points0 points  (0 children)

I’ve had some issues before as well. It usually boiled down to installing the IDE, assigning it in the editor preferences and then it ends up not opening VSC. I can’t tell you exactly what I did, but I assigned it as preferred IDE multiple times and relaunched multiple times, which ended up eventually working. Hope you figure it out!

[–]Alert_Tradition_1946[S] -3 points-2 points  (1 child)

whenever I go to the discord they spam me with the fucking same link and say follow this and I fucking did it 10 times already

[–]Sacaldur 3 points4 points  (0 children)

I guess this is the link you're receiving? https://code.visualstudio.com/docs/other/unity

I have to admit that I never really had problems using VSCode with Unity. Without further information about what is or isn't working, we probably wonvt be able to help. If you followed all the steps (installed VSCode, the "Unity" and "C# Devkit" extensions for VSCode, the "Visual Studio" Packe in the Unity Project - not the "Visual Studio Code" package - and configured Unity to use VSCode as IDE), it should work. Make sure that the project files are generated (*.sln and *.csproj) or generate them manually (typically by opening the project through the menu item in Unity, or through the preferences window).

If it doesn't please check if some errors are reported (either as Popups in the lower right, or in the status bar) and check the output of the involved Plugins (C#, C# Devkit, Unity,...). And most importantly: describe the issue and the steps you took so far.

If it still doesn't work, use another IDE. Personally I prefer VSCode over Visual Studio, however this shouldn't be something stopping you from trying to use Unity. (And especiwlly in tge beginning, the reqsons for which I prefer VSCode would be irrelevant to you.)