Visual studio on macbook

I’m newbie to UE . Lastday I’m install UE to my macbook . When open its said i haven’t Xcode . But i gonna try to learn visualstudio so my friend said i can install visualstudio on my mac ,it will replace visual to xcode , that errro won’t appear. But after install visual ,that’s error still pop-up. i’m get into editor preferences>source code chang to visual studio default . xcode error still pop-up again

As far as i know, you need xcode in combination with the Unreal engine on the mac. no way out.