Install VSCode from one of the following ways
.debfrom official download link
- Ubuntu software (
You can follow this link to install Unity Hub from
Then you can install Unity Editor inside Unity Hub, and create a new project.
Open the new project. In the project’s top menu bar, select
Edit -> Preferences...
In the window, find
External Tool option at the left side menu, and in the right-side
External Script Editor option, switch it to
Visual Studio Code.
Then, check all options under
Generate .csproj files for: title and click
Regenerate project files button.
In this section, try your best to make sure the version is exactly the same with me. I cannot promise other versions are fine, even though the version may vary little.
dotnet-sdk-6.0.400from here. Note: you need to add
$PATHso that VSCode can find it.
mono-126.96.36.199from here. Note: at the time I post this, there’s no
Ubuntu 22.04section in mono download page. I use the exactly same commands with
Ubuntu 20.04section and it works.
You can check whether the version is correct by the following commands
dotnet --version mono --version
You are almost there, just a few steps!
- In VSCode, install the
c#extension setting, uncheck
Use Modern Netoption.
c#extension setting, fill in the
Mono Pathwith the output of command
- Restart your PC.