I have KDE neon (based on Ubuntu 18.04). I have installed the latest Linux version of Unity3D from this link.
I need a C# script editor to start developing C# projects. How do I setup Visual Studio Code to work with Unity3D projects? I need it to auto-complete code and underline compilation errors.
Please note that the following instructions contain commands that are specific for 18.04. Please check the sources if you have a different version of Ubuntu or Linux.
Mono is an open source implementation of Microsoft's .NET Framework sponsored by Microsoft. Instructions for a repository installation:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-devel
(Source). It also has instructions for 16.04 and 14.04.
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1
(Source). It also has instructions for 16.04, 14.04 and others.
Select the debug view on the left and click the cogwheel.
In the drop down list select “Unity Debugger”. If you do not have Unity Debugger in the list, then you already have a .vscode/Launch.json file in your project that you must delete first.
You will now have a .vscode/Launch.json file in your Unity project folder and can select which Unity target you wish to debug.
(Source).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With