IT House reported on April 5th that GitHub joined OpenAI last year to launch a “GitHub Copilot” tool.Automatically write code based on contextfreeing programmers from repetitive writing.
The tool has previously supported Visual Studio Code, Neovim, and JetBrains IDEs, among others.Recently, Copilot came to Microsoft’s own Visual Studio 2022users can download the extension to use.
IT House learned that, consistent with the method used in Visual Studio Code, developers need to firstSign up for GitHub Copilotand wait for official approval before you can use AI programming in Visual Studio 2022.
After approval, users need to go to Extensions > Manage Extensions in Visual Studio 2022, search for GitHub Copilot to download and install.
Currently, GitHub Copilot supports programming languages such as Python, JavaScript, TypeScript, Java, Ruby, and Go. The code can be automatically written according to the context, including docstrings, comments, function names, and codes. As long as the user gives a prompt, the complete function can be written.
▲ Write code according to the function name (the blue part is the automatically generated content)
▲ Write code based on comments
▲ Write code based on repeated content
▲ Import unit test package and write test code automatically
▲ A variety of solutions can also be given for users to choose from
.
[related_posts_by_tax taxonomies=”post_tag”]
The post Microsoft GitHub AI programming tool Copilot now supports Visual Studio 2022 appeared first on Gamingsym.