Application card: GitHub Copilot inline suggestions - GitHub Docs
Skip to main content Skip to content Collapse sidebar Expand sidebar Application card: GitHub Copilot inline suggestions Learn how to use GitHub Copilot inline suggestions responsibly by understanding their purposes, capabilities, and limitations. Who can use this feature? Members of an enterprise with a subscription to GitHub Copilot Enterprise In this article Note You are currently viewing the documentation for Free, Pro, and Team plans.
GitHub Copilot Enterprise is only available to customers on the GitHub Enterprise Cloud plan. For full documentation of Copilot Enterprise, see About GitHub Copilot in the GitHub Enterprise Cloud documentation. What is an Application Card? GitHub’s application and platform cards are intended to help you understand how our AI technology works, the choices application owners can make that influence application performance and behavior, and the importance of considering the whole application, including the technology, the people, and the environment.
Application cards are created for AI applications and platform cards are created for AI platform services. These resources can support the development or deployment of your own applications and can be shared with users or stakeholders impacted by them. As part of its commitment to responsible AI, GitHub adheres to Microsoft's six core principles : fairness, reliability and safety, privacy and security, inclusiveness, transparency, and accountability.
These principles are embedded in the Responsible AI Standard , which guides teams in designing, building, and testing AI applications. Application and Platform Cards play a key role in operationalizing these principles by offering transparency around capabilities, intended uses, and limitations. For further insight, readers are encouraged to explore Microsoft’s Responsible AI Transparency Report and GitHub Terms . 1.
Overview GitHub Copilot inline suggestions provide autocomplete-style suggestions as you work. These suggestions appear inline in your editor or in text fields on GitHub.com, helping you write code and pull request descriptions more quickly. Copilot inline suggestions come in two forms: IDE inline suggestions : As you type code in a supported editor, Copilot automatically offers inline suggestions to complete the current line, generate new blocks of code, or suggest edits to existing code.
These suggestions may include predicting both the location of the next edit you may want to make and what that edit should be, including deletions, modifications, or insertions of code. You can accept all or part of a suggestion, dismiss it, or keep typing to ignore it. Inline suggestions work across a broad range of programming languages and frameworks. Pull request text completion : When you pause while typing a pull request description on GitHub.com, Copilot suggests prose to continue your thought.
The suggestion draws on the pull request title, existing description text, commit titles, partial diffs, and recently viewed pull request and issue titles. You can accept the suggestion by pressing Tab or reject it by continuing to type. The primary supported language for pull request text completion is English. Inline suggestions support many programming languages, with quality varying by the volume and diversity of training data available for each language.
2. Key terms The following list provides a glossary of key terms related to GitHub Copilot inline suggestions: Content filtering : A safety system that scans prompts and responses to detect and block harmful, offensive, or insecure content before it is shown to the user. Hallucination : A phenomenon where a language model generates output that sounds plausible but is factually incorrect, unsupported by the provided context, or entirely fabricated.
Hallucinations are a known risk of large language models and are a key reason that human review of AI-generated output is important. Inline suggestion : An AI‑generated code suggestion from Copilot that appears in the editor as you type. Inline suggestions can complete the current line or propose edits to existing code by predicting both where the next change should occur and what that change should be, including inserting, modifying, or deleting code.
Suggestions may appear at the cursor or guide users to other relevant locations in the codebase, where they can be accepted, dismissed, or ignored by continuing to type. Large language model (LLM) : A type of neural network trained on a large body of text data that can generate, analyze, and transform natural language and code. Copilot inline suggestions use one or more LLMs to process context and produce suggestions.
Public code matching : A safety feature that checks whether Copilot's suggestions match publicly available code. Depending on your settings, matching suggestions are either blocked or annotated with a reference to the source repository and any license information. Pull request text completion : An autocomplete-style suggestion for pull request descriptions on GitHub.com. When you pause while typing, Copilot suggests prose to continue your thought based on the pull request context.
Training data : The large body of publicly available text and code that was used to train the foundation models behind Copilot inline suggestions. The composition of the training data influences the quality and coverage of the model's suggestions across different programming languages, frameworks, and topics. 3. Key features or capabilities The key features and capabilities outlined here describe what GitHub Copilot inline suggestions are designed to do and how they perform across supported tasks.
Inline code suggestions : As you type code in a supported editor, Copilot automatically offers inline suggestions that can complete the current line, generate new blocks of code, or propose edits to existing code. These suggestions may include inserting, modifying, or deleting code, code comments, tests, and more, by predicting both what changes should be made and where in the codebase they should occur. Suggestions may appear at the cursor or guide users to other relevant edit locations, and can be accepted in full or in part, dismissed, or ignored by continuing to type.
Comment-driven code generation : You can guide inline suggestions by writing code comments that describe the code you expect. For example, comments like "use recursion" or "use a singleton pattern" influence the type of algorithm Copilot suggests. Multi-language support : Inline suggestions work across a broad range of programming languages and frameworks. The quality of suggestions depends on the volume and diversity of training data available for each language.
For a list of actively developed programming languages that are found on GitHub, see Programming languages . Pull request text completion : When you pause while typing a pull request description on GitHub.com, Copilot suggests prose to continue your thought. The suggestion draws on the pull request title, existing description text, commit titles, partial diffs, and recently viewed pull request and issue titles. 4. Intended uses GitHub Copilot inline suggestions can be used in multiple scenarios across a variety of industries.
Some examples of use cases include: Accelerating code authoring : Developers can use inline suggestions to work faster by accepting predicted changes as they type, including completing code, generating new blocks, or modifying existing code. Suggestions may insert, update, or delete code across the current line or at other relevant locations in the file by anticipating both what changes should be made and where they should occur.
This is particularly useful for boilerplate code, repetitive patterns, common idioms, and maintaining consistency as code evolves across supported languages and frameworks. Generating unit tests : Copilot can suggest test cases based on the surrounding code, including possible input parameters, expected output values, a
The rest of this page is on the live site.