GitHub Copilot - Your AI pair programmerGitHub Copilot is an AI pair programmer tool that helps you write code faster and smarter. Sign up for GitHub Copilot Free! When you install Copilot in Visual Studio Code, you get two extensions:
Getting access to GitHub CopilotSign up for GitHub Copilot Free, or request access from your enterprise admin. To access GitHub Copilot, an active GitHub Copilot subscription is required. You can read more about our business and individual offerings at github.com/features/copilot. What can I do with GitHub Copilot?You can use Copilot in Visual Studio Code to generate code, fix errors, ask questions about your code, and much more... Code completionsGitHub Copilot provides autocomplete-style suggestions from an AI pair programmer as you code. Just start writing your code in the editor and Copilot provides you with relevant suggestions. Need something specific? Add a natural language code comment to give directions to Copilot about what you want. ChatSometimes you just want to ask a question. Whether you're troubleshooting a bug or crafting a new feature, GitHub Copilot is here to assist when you encounter challenges – simply ask for guidance via chat. Ask Copilot for help with any task or question in the Chat view, bringing in code from your current files. Copilot is not just a search engine. Rather than giving you a generic answer, it can give answers that are relevant for your codebase. Apply Copilot's AI suggestions directly to your code, staying in the flow. Need help with refactoring a method, adding error handling, or explaining a complex algorithm? Just launch Copilot in the editor! Do you just want to ask a quick question and immediately get back in the action? Open Quick Chat with the Chat: Open Quick Chat command , or use the ParticipantsParticipants are experts in a particular domain, such as coding, the editor, or many other areas. You can tag them in any chat to scope your questions and get better answers. Below are examples of using participants built into VS Code. @workspace @terminal @vscode Slash commandsChat participants can also contribute what we call slash commands, which are shortcuts to specific functionality. Slash commands give you access to meticulously crafted prompts for common coding workflows, no prompt engineering required. Below are examples of using several slash commands. /fix /doc /tests VariablesVariables enable you to reference specific information in your code, the editor, or information from other extensions. Combine these with participants to easily pass all the necessary context to Copilot. #file #terminalLastCommand Supported languages and frameworksGitHub Copilot works on any language, including Java, PHP, Python, JavaScript, Ruby, Go, C#, or C++. Because it’s been trained on languages in public repositories, it works for most popular languages, libraries and frameworks. Version compatibilityAs Copilot Chat releases in lockstep with VS Code due to its deep UI integration, every new version of Copilot Chat is only compatible with the latest and newest release of VS Code. This means that if you are using an older version of VS Code, you will not be able to use the latest Copilot Chat. Only the latest Copilot Chat versions will use the latest models provided by the Copilot service, as even minor model upgrades require prompt changes and fixes in the extension. An older version of Copilot Chat will still use the latest version of Copilot completions. Privacy and preview termsBy using Copilot Chat you agree to GitHub Copilot chat preview terms. Review the transparency note to understand about usage, limitations and ways to improve Copilot Chat during the technical preview. Your code is yours. We follow responsible practices in accordance with our Privacy Statement to ensure that your code snippets will not be used as suggested code for other users of GitHub Copilot. To get the latest security fixes, please use the latest version of the Copilot extension and VS Code. Resources & next steps
|