The answer that I find really helpfulWhat actually worked was something along those lines:
- Completely uninstall visual studio.
- Download and install "CCleaner".
- Use CCleaner to clean your registry.
- Reboot your PC. (This seems really important.)
- Download and install Visual Studio Community 2019.
- During installation, make sure you select the game development tool package (but uncheck the unity editor installation if you already have unity installed).
- Let the download and install finish completely without any interruptions.
BY @colinyoung(Thanks to Alex Myers for their comment.)
"To answer the specific question, no, you don't have to use Visual Studio. Visual Studio Code is also at least semi-officially supported with plug ins and ability to launch from the Unity editor. In spite of the similar names they don't share the same code base. Additionally, C# source files are just text files so you can use any text editor you wish to edit them. It won't be as nice an experience though"
BY @trollingcharIf VS setup fails, these are alternatives:
Jetbrains Rider is an alternative which I use. You can also try MonoDevelop, it has less features but also lower requirements.
- Visual Studio Code is also at least semi-officially supported with plug ins and ability to launch from the Unity editor.
- C# source files are just text files so you can use any text editor you wish to edit them. It won't be as nice an experience though.
- Jetbrains Rider is an alternative.
- MonoDevelop, it has less features but also lower requirements.
(Thanks to comments from Colin Young and trollingchar.)