I’m new to software development, just started learning C# from online courses and I really want to get into game dev ASAP. So here’s my situation:
I have a very low spec laptop and so I really do not want to use Visual Studio, so instead I use Visual Studio Code as my code editor. I have .NET Core installed (although my understanding of what .NET is, is actually very fuzzy) and I just got started with the 2D UFO Tutorial. Unity works fine, my scripts do as they’re supposed to and I can follow the tutorials with (mostly) no issues. However, a big concern of mine is the fact that I almost NEVER get Intellisense or CodeLens, even when I have the correct “using” statements. This could be a problem when I need to find different methods, parameters, error messages etc. I never know when I have a method name wrong or if I don’t have the correct using statements or if I’m using a reserved key word for Unity or C#.
One message I do get every time I open a script in VS Code from Unity is:
And when I do review the output console window, I get a very long set of messages that I don’t understand. I don’t want to put it in this post because it would take up too much space. You can find it here.
Please understand that I’m a total noob at this so the answer could be staring at me in the face and I wouldn’t know. Any help would be appreciated.
This page should have everything you need to get VS Code up and running nicely with Unity.
As far as those errors go, it looks like your system is failing to find some .NET 3.5 modules (which I believe are required since that’s the version Unity stuff is based on). I kinda thought all the required .NET stuff was installed for you when you installed Unity, so I’m not sure what that might be about, sadly.
Also, this is the part where I chime in and highly recommend you invest in Script Inspector 3. It turns Unity into a full IDE with built-in code editing. It’s lightning fast, fully supports intellisense, and even has built-in support for all of Unity’s magic methods (Awake, Start, Update, OnEnable, OnDisable, etc.). Moreover the author is really supportive and fast to answer any questions. It literally changed my life for the better when I found it. Install this, and you will never need to launch VS Code again.
You’ll understand someday when you finally try it. It’ll be like a guy I heard once in an interview whose mom never let him go to the movies as a kid. Then when he finally did, the first movie he saw was Star Wars. He was like, “Holy crap, I’ve been missing this?!”