How do you change which app opens scripts?

I keep getting the error “External Code Editor application path does not exist (D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe)! Please select a different application” whenever I try to open a script. I cannot edit it at all as it won’t open and the script isn’t even inside the Assets folder. The folder “2017” is blank. I have Visual Studio 2019 and want to know how to use that instead. Please help as soon as possible!

In preferences, set your editor as VS 2019