The main.xaml file opens as a windows format file

Okay understood.

Could you please right click on the main xaml and choose default app as UiPath Studio to open such files ?

Thanks
#nK