I'm beginning to like Microsoft more and more when I can't use FOSS. GitHub, typescript and vs code are all great.
Also it's getting easy enough to de-google and replace any remaining dependency with the MS suite, which might not be any better but at least google is no longer a monolithic monopoly.
Yes you can get Copilot running, although last time I did it required a few extra steps. The guide I was using was on Github I believe. I would try to find it for you, but busy rn 🙃
I'd go with gitlab instead of codeberg if I had the choice. However the same kinda problem exists as social media with critical mass. The mass is with GitHub and until activitypub federation with gitlab becomes feasible you are cutting out contributors, reviewers, etc by not using GitHub.