Select Microsoft Visual Studio Community when installing a Unity version (),
or install it as a module to an existing Unity install.
Follow the configuration instructions for remaining setup.
Download and open the Visual Studio installer .
Select Install .
Select the Workloads tab, then select the Game development with Unity workload.
Game development with Unity workload.
Select Install to complete the installation.
Follow the configuration instructions for remaining setup.
If Visual Studio was installed manually, install the Game development with Unity workload.
Game development with Unity workload.
Open the Visual Studio Installer.
Select the Workloads tab, then select the Game development with Unity workload.
Select Install .
Ensure the Visual Studio Editor package installed and updated in UPM (com.unity.ide.visualstudio ).
Set the External Script Editor dropdown in Unity's External Tools preferences () to Visual Studio.
If you have compiler errors, resolve them or comment out those files so Unity can compile code.
Ensure the Visual Studio Editor package is installed and updated in UPM (com.unity.ide.visualstudio ).
Regenerate project files via Unity.
Close VS.
Select regenerate project files in .
Reopen VS via .
Regenerate project files via VS.
If an assembly in the Solution Explorer is marked as (incompatible) , right-click it and select reload with dependencies .
If an assembly in the Solution Explorer is marked as (unloaded) , right-click it and select reload project .
Restart your computer.
Return to general IDE configuration.