During a normal Unity installation, Visual Studio Community Edition should also be installed automatically. However, if something went wrong during the normal Unity installation, you can download and install Visual Studio separately.

To install Visual Studio 2022 Community Edition separately, you can download it here:

https://visualstudio.microsoft.com/vs/community/

 

During installation, you will be prompted to check certain tools and features that should be installed.  You will want to make sure you check these two:

 

 

…and…

 

 

After the Visual Studio setup completes, please return to your Unity IDE and see if you can select Visual Studio 2022 under the “External Tools” in your preference.