Visual Studio doesn't open when clicking on script in unity after update.

I updated unity 2019 to 2020 and now I can’t open any scripts. If I use the older version of unity It still works as it should but i can’t use 2020 version.

If you have visual studio on your computer, simply delete the “Visual studio editor” package by going to “Window->Package Manager” in Unity.

Dont know it’s wrong or right, but it worked for me