Whats the difference between the blue and purple Visual Studios?

When, following a tutorial by Brackeys about coding in C#, he installed the blue one.
But I already had the purple one (it only appears when writing a script in unity, or using the search in the task bar).

Do I need to install two, or just one?
Which one, or does that not matter?
What is the difference between the two, or is there non?
Why are there two different versions if they’re both the same?

I assume you are referring to the icons. The blue icon is Visual Studio Code and the purple icon is Visual Studio the ide. You can use either one, but Visual Studio code is an editor and very light weight compared to Visual Studio the ide. Visual Studio the ide is a full blown ide with lots of features. You can go check out https://visualstudio.microsoft.com/ for more information.