Reputation: 3
So I am really just about starting to code in Unity, and I am only following tutorials on the internet. And on a lot of them, the coders have some sort of autofill that shows the Unity components (KeyCode, Debug.Log, etc.) So, does anyone know how to connect Unity to VS Code that would be helpful.
(I have noticed that the coders use VS 2019, so if I can't use connect VS Code to Unity and I need VS 2019, tell me.)
Thanks! :)
(Also if you don't understand what I am talking about feel free to ask further)
Upvotes: 0
Views: 1029
Reputation: 332
Actually thats pretty easy
Open your Visual Studio 2019 Installer
Click on Change at Visual Studio
Under the Bulletpoint "Gaming" enable "Gamedesigne with Unity" and install it
Inside Unity go to Edit -> Preferences -> External Tools and set Visual Studio under "External Script Editor"
Maybe Restart Unity
I think thas everything you have to do.
Upvotes: 0
Reputation: 190
VS Code official site has a lot of instructions about many setups, and here is the one for Unity integration: https://code.visualstudio.com/docs/other/unity
Sometimes all you need is just type vs code unity
in Google and hit Enter...
And yeah, you can use VS Code. I use VS Code + Unity setup on Linux and it has pretty much all I need for my little projects. Thanks to great amount of VS Code extensions available and built-in Git support, I'm very happy with it.
Upvotes: 1
Reputation: 111
Follow these Steps: Using VS Tools for Unity
I don't know if it works with VS code but it might be very similar like VS
Upvotes: 0