Aaron here, Product Manager for AI experiences in the Visual Studio family.
Let's get the GitHub Copilot extension installed in Visual Studio 2022 together.
Here I am in Visual Studio 2022. To use GitHub Copilot, I'm going to need version 17.4.4 or above.
So let's check this by clicking "Help", "About Microsoft Visual Studio".
And here we see that my version is newer than 17.4.4, so we're good to go.
The first real step that we'll take towards installing GitHub Copilot is to click "Extensions"", "Manage Extensions".
and then we're going to search for "Copilot".
We'll click "Download", and below we see that we actually need to close Visual Studio to complete the installation.
So I'll click "Close" on this dialog and and close Visual Studio.
We see that the VSIX Installer pops up to help complete the installation.
We'll see that it suggests to install Copilot so we'll click "Modify" to continue.
We now see that this is done so we'll click "Close" on the installer and reopen Visual Studio.
Once I open my project, we'll see that Copilot presents another dialog to complete the authentication process.
Upon clicking "OK", a device authorization code will be copied to my clipboard and the browser will open to the authorization page.
Just in case something happens to your clipboard, we can see that the code and the link are actually in the "Output" window of Visual Studio.
Going back to the happy path, I'm going to paste my code here, click "Continue"...
and GitHub will ask me to authorize the GitHub Copilot plugin.
I'm going to click "Authorize".
Now that we're back in Visual Studio, we see that there is now a message that says we're successfully authorized...
So let's write some code: I'm going to declare this method...
and we see that Copilot is now offering two lines of code to me in grey text...
to which I can press TAB to accept.
Take a look at the GitHub Copilot widget in the bottom left of the editor here.
There are more settings and shortcuts that you can play with.
Hey! Quick recap - so together we installed the GitHub Copilot extension for Visual Studio 2022.
We went through the sign-in and auth process together, looked at what a grey-text multi-line suggestion looks like,
the "Tab" key we used to accept it and the widget with additional settings and shortcuts.
If you've got any feedback, please leave it in the GitHub Community for Copilot.
Feel free to tweet us and let us know what you think.
Thanks for giving this a try.