Next, head to the Mono Download page, and follow the first set of instructions to add the Mono repository to your system.
Then, for the second step, install mono-complete instead of mono-devel as shown below. #UNITY VISUAL STUDIO 2015 INTELLISENSE INSTALL# The version coming from the Ubuntu repositories doesn’t seem to play well with VS Code and Unit圓D.) (Note: don’t run the following command before first setting up the Mono repository. In Settings, set “Omnisharp: Use Global Mono” to “always” and then restart OmniSharp. To fix this, I had to downgrade the C# extension in VS Code, as follows: The above steps are usually enough to get Intellisense working, but as I’m writing this right now, it doesn’t seem to work.
It’s a lightweight version of the full Visual Studio with IntelliSense, debugging and Git integration, and it’s available for PC, Mac and Linux. It’s also pretty damn sexy, with a similar style to Sublime.įor some reason, on the VS Code website it says it’s for node.js and asp.net development – nothing about C# or integration with Unity.
I posted a few screenshots the day it was released on Twitter and the Unit圓D sub-reddit and had a lot of responses asking how to do it, so here how you get it running: Which led a lot of people to ask: “When will it be integrated with Unity?” Well, great news: it already is. #UNITY VISUAL STUDIO 2015 INTELLISENSE HOW TO# You can use VS code as a text editor – just as you would Sublime, Notepad, Notepad++ – by simply opening a. cs file for quick and easy editing, but I want to set it up with my full solution. You need to select the base project folder, just like you do when opening a full Unity project. Your project will be in VS Code but you need to connect the correct solution file. On the bottom left, it’ll show you how many different projects are available. You need the one that has “nameOfProject”-csharp.sln, rather than the one that shows “nameOfProject”.sln. You should now have full auto completion, just like using Visual Studio or MonoDevelop. #UNITY VISUAL STUDIO 2015 INTELLISENSE FULL# Set Visual Studio Code as the default IDE in Unity. #UNITY VISUAL STUDIO 2015 INTELLISENSE CODE# There’s no debugging yet for Unity, but hopefully that will be coming soon.Mono runtime may need updating to get everything to work.