Hi, I'm having trouble creating a new ue4 project

Hi, I’m trying to generate a new project in UE4.27 but when I generate a project, UE opens Microsoft visual studio instead of visual studio code (that I want) and then doesn’t let open the project itself.
(While making the building escape game everything was generated fine so I thing it’s something with the version because it was on 4.22)
Thank you

Did you change the source code editor in your editor preferences?

Do you get any errors?

Thanks for replying,
I didn’t have the chance to set the source control because when I try to create a project in cpp I can’t open ue4.

and yes I did get an error, no matter what I choose I can’t open ue4 with cpp

this is when I create the project
but when I try to launch I get:
image

Do you use any antivirus software? Looks like an issue with permissions.