Skip to main content
我们经常发布文档更新,此页面的翻译可能仍在进行中。 有关最新信息,请访问英语文档

关于 GitHub Copilot 个人版

GitHub Copilot 可以通过提供自动完成样式的建议来帮助你编写代码。 可以了解使用 GitHub Copilot 时 GitHub Copilot 的工作原理以及要考虑的事项。

About GitHub Copilot

GitHub Copilot is an AI pair programmer that offers autocomplete-style suggestions as you code. You can receive suggestions from GitHub Copilot either by starting to write the code you want to use, or by writing a natural language comment describing what you want the code to do. GitHub Copilot analyzes the context in the file you are editing, as well as related files, and offers suggestions from within your text editor. GitHub Copilot is powered by OpenAI Codex, a new AI system created by OpenAI.

GitHub Copilot is trained on all languages that appear in public repositories. For each language, the quality of suggestions you receive may depend on the volume and diversity of training data for that language. For example, JavaScript is well-represented in public repositories and is one of GitHub Copilot's best supported languages. Languages with less representation in public repositories may produce fewer or less robust suggestions.

GitHub Copilot is available as an extension in Visual Studio Code, Visual Studio, Neovim and the JetBrains suite of IDEs. For more information, see "Getting started with GitHub Copilot."

Understanding the differences between Copilot for Individuals and Copilot for Business

Copilot for IndividualsCopilot for Business
Pricing$10 per month/$100 per year$19 per user per month
Types of GitHub accountsPersonal accountsOrganization or enterprise accounts
Blocks suggestions matching public code
Plugs right into your editor
Offers multi-line function suggestions
Organization-wide policy management
VPN Proxy support via self-signed certificates

For more information about VPN Proxy support via self-signed certificates, see "Configuring GitHub Copilot in your environment".

Using GitHub Copilot

You can see real-world examples of GitHub Copilot in action. For more information, see the GitHub Copilot website.

GitHub Copilot offers suggestions from a model that OpenAI built from billions of lines of open source code. As a result, the training set for GitHub Copilot may contain insecure coding patterns, bugs, or references to outdated APIs or idioms. When GitHub Copilot produces suggestions based on this training data, those suggestions may also contain undesirable patterns.

You are responsible for ensuring the security and quality of your code. We recommend you take the same precautions when using code generated by GitHub Copilot that you would when using any code you didn't write yourself. These precautions include rigorous testing, IP scanning, and tracking for security vulnerabilities. GitHub provides a number of features to help you monitor and improve code quality, such as GitHub Actions, Dependabot, CodeQL and code scanning. All these features are free to use in public repositories. For more information, see "Understanding GitHub Actions" and "GitHub security features."

GitHub Copilot uses filters to block offensive words in the prompts and avoid producing suggestions in sensitive contexts. We are committed to constantly improving the filter system to more intelligently detect and remove offensive suggestions generated by GitHub Copilot, including biased, discriminatory, or abusive outputs. If you see an offensive suggestion generated by GitHub Copilot, please report the suggestion directly to so that we can improve our safeguards.

About billing for GitHub Copilot

GitHub Copilot is a paid feature, requiring a monthly or yearly subscription. GitHub Copilot subscriptions can be paid for and managed through a personal account on with Copilot for Individuals, or paid for and managed centrally through an enterprise account on GitHub Enterprise Cloud with GitHub Copilot for Business.

Verified students, teachers, and maintainers of popular open source projects on GitHub are eligible to use Copilot for Individuals for free. If you meet the criteria for a free Copilot for Individuals subscription, you will be automatically notified when you visit the GitHub Copilot subscription page. For more information, see "About billing for GitHub Copilot."

About the license for the GitHub Copilot plugin in JetBrains IDEs

GitHub, Inc. is the licensor of the JetBrains plugin. The end user license agreement for this plugin is the GitHub Terms for Additional Products and Features and use of this plugin is subject to those terms. JetBrains has no responsibility or liability in connection with the plugin or such agreement. By using the plugin, you agree to the foregoing terms.

Further reading