I am looking in the marketplace but it seems only available for vscode?
https://marketplace.visualstudio.com/items?itemName=GitHub.copilot
GitHub Copilot now available for Visual Studio 2022
[Edit]
It was free during the technical preview and until August 22nd, 2022:
[Edit - 10/09/2022]
It is available for free for educational roles: