2 min

The AI solution for developers is now available from Visual Studio 2022 for everyone in the technical preview.

GitHub Copilot, the solution that uses AI to make code suggestions to developers, is now available in Visual Studio 2022. 

The solution makes suggestions to developers as they type, suggesting the code it thinks they might want. It can suggest whole lines or entire functions based on the context from the code being written. 

Martin Woodward, Director of Developer Relations for GitHub, announced the availability in a blog post. “Since we launched GitHub Copilot into technical preview last year, we’ve been busy learning from the feedback we’ve been receiving as well as expanding the numbers of people with access to the technical preview and the places where you can use it,” he wrote. “Today, we are adding our top requested IDE: Visual Studio 2022.”

Developers will need to sign up for the waitlist to get access to the GitHub Copilot technical preview before installing the Visual Studio 2022 extension. “While spaces are limited, we are continuing to add more developers into the preview as we increase capacity of the service,” Woodward explains.

“Once you have received an email from GitHub confirming you have access, in Visual Studio 2022 go to Extensions > Manage Extensions and search for GitHub Copilot.”

Here’s how it works

“As you type, GitHub Copilot will automatically suggest the code that it thinks you might want,” Woordward says. “You can press the tab key to accept or you can simply keep typing to ignore and GitHub Copilot will make more suggestions based on what it thinks you are doing. You can press Esc to clear a suggestion completely if it’s getting in your way.”

“We’re really excited to see what you think of GitHub Copilot in Visual Studio and get your feedback, especially on the .NET Languages.,” Woodward continues. “Try writing some unit tests with your favorite frameworks, or having GitHub Copilot help you implement new methods,” he suggests. “The more specific your code comments are, the better GitHub Copilot can create code that matches your intentions.”

Also read: Microsoft releases its latest Visual Studio update.