diff --git a/docs/copilot/ai-powered-suggestions.md b/docs/copilot/ai-powered-suggestions.md index 4c8d47c66f..dcc8b4355b 100644 --- a/docs/copilot/ai-powered-suggestions.md +++ b/docs/copilot/ai-powered-suggestions.md @@ -1,16 +1,16 @@ --- ContentId: 7ab2cd6c-45fd-4278-a6e8-1c9e060593ea DateApproved: 10/09/2025 -MetaDescription: Enhance your coding with AI-powered code completions from GitHub Copilot in Visual Studio Code. +MetaDescription: Enhance your coding with AI-powered inline suggestions from GitHub Copilot in Visual Studio Code. MetaSocialImage: images/shared/github-copilot-social.png --- -# Code completions with GitHub Copilot in VS Code +# Inline suggestions from GitHub Copilot in VS Code -GitHub Copilot acts as an AI-powered pair programmer, automatically offering suggestions to complete your code, comments, tests, and more. It provides these suggestions directly in the editor while you write your code, and it can work with a broad range of programming languages and frameworks. +GitHub Copilot acts as an AI-powered pair programmer, automatically offering inline suggestions to complete your code, comments, tests, and more. It provides these suggestions directly in the editor while you write your code, and it can work with a broad range of programming languages and frameworks. -Copilot provides two kinds of suggestions: +You may experience two kinds of inline suggestions from Copilot, both of which match your coding style and take your existing code into account: -* **Code completions** - Start typing in the editor, and Copilot provides code suggestions that match your coding style and take your existing code into account. +* **Ghost text suggestions** - Start typing in the editor, and Copilot provides dimmed *ghost text* suggestions at your current cursor location. * **Next edit suggestions** - Predict your next code edit with Copilot next edit suggestions, aka Copilot NES. Based on the edits you're making, NES both predicts the location of the next edit you'll want to make and what that edit should be. @@ -23,13 +23,13 @@ Copilot provides two kinds of suggestions: 1. Sign in with your GitHub account to use Copilot. > [!TIP] - > If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of completions and chat interactions. + > If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of inline suggestions and chat interactions. 1. Discover the key features of Copilot in VS Code with our [Copilot Quickstart](/docs/copilot/getting-started.md). -## Inline suggestions +## Getting your first suggestions -Copilot offers code suggestions as you type: sometimes the completion of the current line, sometimes a whole new block of code. You can accept all, or part of a suggestion, or you can keep typing and ignore the suggestions. +Copilot offers dimmed *ghost text* suggestions as you type: sometimes the completion of the current line, sometimes a whole new block of code. You can accept all, or part of a suggestion, or you can keep typing and ignore the suggestions. Notice in the following example how Copilot suggests an implementation of the `calculateDaysBetweenDates` JavaScript function by using dimmed *ghost text*: @@ -37,7 +37,7 @@ Notice in the following example how Copilot suggests an implementation of the `c When you're presented with an inline suggestion, you can accept it with the `kbstyle(Tab)` key. -Copilot tries to apply the same coding style for the code suggestions that you already have in your code. Notice in the following example that Copilot applies the same input parameter naming scheme from the `add` method for the suggested `subtract` method. +Copilot tries to apply the same coding style that you already have in your code. Notice in the following example that Copilot applies the same input parameter naming scheme from the `add` method for the suggested `subtract` method. ![JavaScript ghost text suggestion.](images/inline-suggestions/ts-suggest-parameter-names.png) @@ -61,7 +61,7 @@ The following example shows how to instruct Copilot to create a class in TypeScr ## Next edit suggestions -Inline suggestions are great at autocompleting a section of code. But since most coding activity is editing existing code, it's a natural evolution of Copilot code completions to also help with edits, both at the cursor and further away. Edits are often not made in isolation - there's a logical flow of what edits need to be made in different scenarios. Next edit suggestions (Copilot NES) is this evolution. +Ghost text suggestions are great at autocompleting a section of code. But since most coding activity is editing existing code, it's a natural evolution of inline suggestions to also help with edits, both at the cursor and further away. Edits are often not made in isolation - there's a logical flow of what edits need to be made in different scenarios. Next edit suggestions (Copilot NES) is this evolution. @@ -116,23 +116,23 @@ By default, edit suggestions are indicated by the gutter arrow and the code chan * **Matching code style**. After copy-pasting some code, Copilot will suggest how to adjust it to match the current code where the paste happened. -## Enable or disable code completions +## Enable or disable inline suggestions -You can enable or disable code completions either for all languages or for specific languages only. To enable or disable code completions, select the Copilot menu in the Status Bar, and then check or uncheck the options to enable or disable code completions. The option to disable code completions for a specific language is dependent on the language of the active editor. +You can enable or disable inline suggestions either for all languages or for specific languages only. To enable or disable inline suggestions, select the Copilot menu in the Status Bar, and then check or uncheck the options to enable or disable inline suggestions. The option to disable inline suggestions for a specific language is dependent on the language of the active editor. ![Screenshot of the Copilot menu in the Status Bar with Snooze and Cancel Snooze buttons.](images/inline-suggestions/snooze-code-completions.png) -Alternatively, modify the `setting(github.copilot.enable)` setting in the Settings editor. Add an entry for each language you want to enable or disable code completions for. To enable or disable code completions for all languages, set the value for `*` to `true` or `false`. +Alternatively, modify the `setting(github.copilot.enable)` setting in the Settings editor. Add an entry for each language you want to enable or disable inline suggestions for. To enable or disable inline suggestions for all languages, set the value for `*` to `true` or `false`. -To temporarily disable all code completions in the editor, select the Copilot menu in the Status Bar, and then select the **Snooze** button to increment the snooze time by five minutes. To resume code completions, select the **Cancel Snooze** button in the Copilot menu. +To temporarily disable all inline suggestions in the editor, select the Copilot menu in the Status Bar, and then select the **Snooze** button to increment the snooze time by five minutes. To resume inline suggestions, select the **Cancel Snooze** button in the Copilot menu. Alternatively, use the **Snooze Inline Suggestions** and **Cancel Snooze Inline Suggestions** commands in the Command Palette. -## Change the AI model for completions +## Change the AI model for suggestions Different Large Language Models (LLMs) are trained on different types of data and might have different capabilities and strengths. Learn more about how to [choose between different AI language models](/docs/copilot/customization/language-models.md) in VS Code. -To change the language model that is used for generating code completions in the editor: +To change the language model that is used for generating ghost text suggestions in the editor: 1. Open the Command Palette (`kbstyle(F1)`). @@ -141,7 +141,7 @@ To change the language model that is used for generating code completions in the 1. In the dropdown menu, select the model you want to use. > [!NOTE] -> The list of available models might vary and change over time. The model picker may not always show more than one model, and preview models and additional code completion models will become available there if/when we release them. If you are a Copilot Business or Enterprise user, your Administrator needs to enable certain models for your organization by opting in to `Editor Preview Features` in the [Copilot policy settings](https://docs.github.com/en/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization) on GitHub.com. +> The list of available models might vary and change over time. The model picker may not always show more than one model, and preview models and additional inline suggestion models will become available there if/when we release them. If you are a Copilot Business or Enterprise user, your Administrator needs to enable certain models for your organization by opting in to `Editor Preview Features` in the [Copilot policy settings](https://docs.github.com/en/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization) on GitHub.com. ## Tips & tricks @@ -151,7 +151,7 @@ To give you relevant inline suggestions, Copilot looks at the current and open f ## Settings -### Code completions settings +### Ghost text suggestions settings * `setting(github.copilot.enable)` - enable or disable inline completions for all or specific languages. diff --git a/docs/copilot/copilot-tips-and-tricks.md b/docs/copilot/copilot-tips-and-tricks.md index 82b4b966b9..de74e221f6 100644 --- a/docs/copilot/copilot-tips-and-tricks.md +++ b/docs/copilot/copilot-tips-and-tricks.md @@ -30,7 +30,7 @@ Depending on your task, you can choose between different Copilot tools. | Tool | Use case | |------|----------| -| [Code completions](/docs/copilot/ai-powered-suggestions.md) | Streamline coding while staying in the flow.
Receive inline suggestions for code snippets, variable names, and functions as you write them in the editor. | +| [Inline suggestions](/docs/copilot/ai-powered-suggestions.md) | Streamline coding while staying in the flow.
Receive inline suggestions for code snippets, variable names, and functions as you write them in the editor. | | [Chat](/docs/copilot/chat/copilot-chat.md) | Have an ongoing chat conversation for brainstorming design ideas or getting code suggestions, optionally calling on domain-specific chat participants.
Choose to apply specific code suggestions to your codebase. | | [Agent mode](/docs/copilot/chat/copilot-chat.md#built-in-chat-modes) | Implement high-level requirements by starting an agentic coding flow.
Copilot autonomously invokes multiple tools to plan and implement the code changes and tasks that are needed. | diff --git a/docs/copilot/customization/custom-instructions.md b/docs/copilot/customization/custom-instructions.md index eac4c486d2..6ecfc7972f 100644 --- a/docs/copilot/customization/custom-instructions.md +++ b/docs/copilot/customization/custom-instructions.md @@ -11,7 +11,7 @@ Custom instructions enable you to define common guidelines and rules that automa You can configure custom instructions to apply automatically to all chat requests or to specific files only. Alternatively, you can manually attach custom instructions to a specific chat prompt. > [!NOTE] -> Custom instructions are not taken into account for [code completions](/docs/copilot/ai-powered-suggestions.md) as you type in the editor. +> Custom instructions are not taken into account for [inline suggestions](/docs/copilot/ai-powered-suggestions.md) as you type in the editor. ## Type of instructions files diff --git a/docs/copilot/customization/language-models.md b/docs/copilot/customization/language-models.md index 86d1664d1e..81ed40dec4 100644 --- a/docs/copilot/customization/language-models.md +++ b/docs/copilot/customization/language-models.md @@ -6,7 +6,7 @@ MetaSocialImage: images/shared/github-copilot-social.png --- # AI language models in VS Code -Visual Studio Code offers different built-in language models that are optimized for different tasks. You can also bring your own language model API key to use models from other providers. This article describes how to change the language model for chat or code completions, and how to use your own API key. +Visual Studio Code offers different built-in language models that are optimized for different tasks. You can also bring your own language model API key to use models from other providers. This article describes how to change the language model for chat or inline suggestions, and how to use your own API key. ## Choose the right model for your task @@ -65,16 +65,16 @@ If you want to reduce the number of built-in models that are shown in the model ![Screenshot that shows the model Quick Pick to choose which models to show in the model picker.](../images/language-models/model-picker-choose-models.png) -## Change the model for code completions +## Change the model for inline suggestions -To change the language model that is used for generating code completions in the editor: +To change the language model that is used for generating inline suggestions in the editor: -1. Select **Configure Code Completions...** from the Chat menu in the VS Code title bar. +1. Select **Configure Inline Suggestions...** from the Chat menu in the VS Code title bar. 1. Select **Change Completions Model...**, and then select one of the models from the list. > [!NOTE] -> The models that are available for code completions might evolve over time as we add support for more models. +> The models that are available for inline suggestions might evolve over time as we add support for more models. ## Bring your own language model key @@ -159,7 +159,7 @@ Alternatively, you can manually add your custom model configuration in the `sett There are a number of considerations when using your own language model API key in VS Code: -* Bringing your own model only applies to the chat experience and doesn't impact code completions or other AI-powered features in VS Code, such as commit-message generation. +* Bringing your own model only applies to the chat experience and doesn't impact inline suggestions or other AI-powered features in VS Code, such as commit-message generation. * The capabilities of each model might differ from the built-in models and could affect the chat experience. For example, some models might not support vision or tool calling. * The Copilot API is still used for some tasks, such as sending embeddings, repository indexing, query refinement, intent detection, and side queries. * When using your own model, there is no guarantee that responsible AI filtering is applied to the model's output. @@ -180,7 +180,7 @@ You can use locally hosted models in chat by using [bring your own model key](#b * Install an extension from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/search?term=tag%3Alanguage-models&target=VSCode&category=All%20categories&sortBy=Relevance), for example, [AI Toolkit for VS Code with Foundry Local](https://aka.ms/AIToolkit) * Configure a [custom OpenAI-compatible model](#use-an-openai-compatible-model) -Currently, you cannot connect to a local model for code completions. VS Code provides an extension API [`InlineCompletionItemProvider`](/api/references/vscode-api.md#InlineCompletionItemProvider) that enables extensions to contribute a custom completion provider. You can get started with our [Inline Completions sample](https://github.com/microsoft/vscode-extension-samples/blob/main/inline-completions). +Currently, you cannot connect to a local model for inline suggestions. VS Code provides an extension API [`InlineCompletionItemProvider`](/api/references/vscode-api.md#InlineCompletionItemProvider) that enables extensions to contribute a custom completion provider. You can get started with our [Inline Completions sample](https://github.com/microsoft/vscode-extension-samples/blob/main/inline-completions). > [!NOTE] > Currently, using a locally hosted models still requires the Copilot service for some tasks. Therefore, your GitHub account needs to have access to a Copilot plan (for example, Copilot Free) and you need to be online. This requirement might change in a future release. diff --git a/docs/copilot/faq.md b/docs/copilot/faq.md index e7b57493e1..0840915f7d 100644 --- a/docs/copilot/faq.md +++ b/docs/copilot/faq.md @@ -16,14 +16,14 @@ There are different ways to get access to GitHub Copilot: | Type of User | Description | |--------------------------------|-------------| -| Individual | | +| Individual | | | Organization/Enterprise member | | ### What's the advantage of signing in with a GitHub account? Signing in with a GitHub account that has access to GitHub Copilot has the following benefits: -* [Code completions and next edit suggestions in the editor](/docs/copilot/ai-powered-suggestions.md) +* [Inline suggestions in the editor](/docs/copilot/ai-powered-suggestions.md) * [Increased monthly limit of chat interactions](https://docs.github.com/en/copilot/get-started/plans#comparing-copilot-plans) * [Access to premium language models in chat](https://docs.github.com/en/copilot/reference/ai-models/supported-models#supported-ai-models-per-copilot-plan) beyond auto model selection * [Bring your own model keys](/docs/copilot/customization/language-models.md#bring-your-own-language-model-key) (BYOK) to access more models @@ -38,18 +38,18 @@ Depending on your Copilot plan, you might have different levels of access and li You can view the current Copilot usage in the Copilot status dashboard, available through the VS Code Status Bar. The dashboard shows the following information: -- **Completions**: The percentage of code completions quota you have used in the current month. +- **Inline suggestions**: The percentage of inline suggestions quota you have used in the current month. - **Chat messages**: The percentage of chat requests quota you have used in the current month. - **Premium requests**: The percentage of premium requests quota you have used in the current month. - **Premium requests overage**: The number of overage premium requests you have used in the current month. Visit the GitHub Copilot documentation for more information about [monitoring usage and entitlements](https://docs.github.com/en/copilot/managing-copilot/monitoring-usage-and-entitlements/monitoring-your-copilot-usage-and-entitlements). -### I reached my completions or chat interactions limit +### I reached my inline suggestions or chat interactions limit -Your limit of code completions and chat interactions is reset every month. If only you've only reached the chat interactions limit, you can still use code completions. Inversely, if you've reached the limit for code completions, you can still use chat. +Your limit of inline suggestions and chat interactions is reset every month. If only you've only reached the chat interactions limit, you can still use inline suggestions. Inversely, if you've reached the limit for inline suggestions, you can still use chat. -For users on Copilot Free, to access more completions and chat interactions, you can sign up for a [paid plan](https://docs.github.com/en/copilot/concepts/billing/individual-plans) directly from VS Code. Alternatively, you can wait until the next month to continue using Copilot for free. +For users on Copilot Free, to access more inline suggestions and chat interactions, you can sign up for a [paid plan](https://docs.github.com/en/copilot/concepts/billing/individual-plans) directly from VS Code. Alternatively, you can wait until the next month to continue using Copilot for free. ![Visual indicators in Chat view, Status Bar, and title bar that you reached a limit for Copilot chat messages.](images/faq/copilot-chat-limit-reached.png) @@ -104,22 +104,22 @@ You can tell if you're running a pre-release version by the "Pre-release" badge ![Pre-release version of the GitHub Copilot extension](images/faq/copilot-ext-pre-release.png) -## Code completions +## Inline suggestions -### How do I enable or disable code completions? +### How do I enable or disable inline suggestions? -To enable or disable code completions in VS Code, use the checkboxes in the Copilot status dashboard from the VS Code Status Bar. You can enable or disable code completions globally or for the file type of the active editor. +You can enable or disable inline suggestions in VS Code by using the checkboxes in the Copilot status dashboard from the VS Code Status Bar. You can enable or disable inline suggestions globally or for the file type of the active editor. ![Screenshot showing the VS Code status bar, highlighting the Copilot icon that indicates Copilot is active.](./images/faq/copilot-disable-completions.png) -Alternatively, use the `setting(github.copilot.enable)` and `setting(github.copilot.nextEditSuggestions.enabled)` settings to enable or disable code completions and next edit suggestions, respectively. You can configure these settings at the workspace or user level. +Alternatively, use the `setting(github.copilot.enable)` and `setting(github.copilot.nextEditSuggestions.enabled)` settings to enable or disable inline suggestions and next edit suggestions, respectively. You can configure these settings at the workspace or user level. -### Inline completions are not working in the editor +### Inline suggestions are not working in the editor -- Verify that [GitHub Copilot is not disabled](#how-do-i-enable-or-disable-code-completions) globally or for this language +- Verify that [GitHub Copilot is not disabled](#how-do-i-enable-or-disable-inline-suggestions) globally or for this language - Verify that your [GitHub Copilot subscription is active and detected](#my-copilot-subscription-is-not-detected-in-vs-code) - Verify that your [network settings](#network-and-firewall-configuration-for-copilot) are configured to allow connectivity to GitHub Copilot. -- Verify that you have not reached the limit of completions for the month with the [Copilot Free plan](https://docs.github.com/copilot/managing-copilot/managing-copilot-as-an-individual-subscriber/about-github-copilot-free). +- Verify that you have not reached the limit of inline suggestions for the month with the [Copilot Free plan](https://docs.github.com/copilot/managing-copilot/managing-copilot-as-an-individual-subscriber/about-github-copilot-free). ## Chat @@ -160,11 +160,11 @@ You can also control the default visibility of the Secondary Side Bar with the ` We track issues and feature requests for GitHub Copilot in VS Code in the [microsoft/vscode](https://github.com/microsoft/vscode) GitHub repository. You can create issues in this repository or use the following feedback mechanisms in VS Code: -- **Code completions** +- **Ghost text suggestions** - Use the **Send Copilot Completion Feedback** action when hovering over a code completion in the editor. In the Issue Reporter, provide a clear and detailed description of the issue, including steps to reproduce it. + Use the **Send Copilot Completion Feedback** action when hovering over a ghost text suggestion in the editor. In the Issue Reporter, provide a clear and detailed description of the issue, including steps to reproduce it. - ![Screenshot that shows sending Copilot Completion Feedback action in the editor.](images/faq/code-completions-feedback.png) + ![Screenshot that shows sending Copilot Ghost Text Feedback action in the editor.](images/faq/code-completions-feedback.png) - **Next edit suggestions** diff --git a/docs/copilot/getting-started.md b/docs/copilot/getting-started.md index e7053658af..7695a20179 100644 --- a/docs/copilot/getting-started.md +++ b/docs/copilot/getting-started.md @@ -1,12 +1,12 @@ --- ContentId: 37fd3bd2-4209-49f6-bec5-c544d6b1b289 DateApproved: 10/09/2025 -MetaDescription: Build your first web application with GitHub Copilot in VS Code. Learn code completions, agent mode, inline chat, smart actions, and how to personalize your AI coding experience. +MetaDescription: Build your first web application with GitHub Copilot in VS Code. Learn inline suggestions, agent mode, inline chat, smart actions, and how to personalize your AI coding experience. MetaSocialImage: images/shared/github-copilot-social.png --- # Get started with GitHub Copilot in VS Code -GitHub Copilot transforms how you write code in Visual Studio Code. In this hands-on tutorial, you build a complete task management web application while discovering Copilot's core capabilities: intelligent code completions, autonomous feature development with agent mode, precise editing with inline chat, integrated smart actions, and powerful customization options. +GitHub Copilot transforms how you write code in Visual Studio Code. In this hands-on tutorial, you build a complete task management web application while discovering Copilot's core capabilities: intelligent inline suggestions, autonomous feature development with agent mode, precise editing with inline chat, integrated smart actions, and powerful customization options. By the end of this tutorial, you'll have both a working web application and a personalized AI coding setup that adapts to your development style. @@ -17,11 +17,11 @@ By the end of this tutorial, you'll have both a working web application and a pe * Access to GitHub Copilot. Follow these steps to [Set up GitHub Copilot in VS Code](/docs/copilot/setup.md). > [!TIP] - > If you don't have a Copilot subscription, you can sign up to use Copilot for free directly from within VS Code and get a monthly limit of completions and chat interactions. + > If you don't have a Copilot subscription, you can sign up to use Copilot for free directly from within VS Code and get a monthly limit of inline suggestions and chat interactions. -## Step 1: Experience code completions +## Step 1: Experience inline suggestions -Code completions provide AI suggestions as you type, helping you write code faster and with fewer errors. Let's start building the foundation of your task manager. +AI-powered inline suggestions appear as you type, helping you write code faster and with fewer errors. Let's start building the foundation of your task manager. 1. Create a new folder for your project and open it in VS Code. @@ -33,13 +33,13 @@ Code completions provide AI suggestions as you type, helping you write code fast ``` - ![Screenshot showing Copilot suggesting HTML structure completion.](./images/getting-started/html-completion.png) + ![Screenshot showing Copilot suggesting HTML structure inline suggestion.](./images/getting-started/html-completion.png) You might see different suggestions because large language models are nondeterministic. 1. Press `kbstyle(Tab)` to accept the suggestion. - Congratulations! You've just accepted your first AI-powered code completion. + Congratulations! You've just accepted your first AI-powered inline suggestion. 1. Continue building your HTML structure. Inside the `` tag, start typing: @@ -55,7 +55,7 @@ Code completions provide AI suggestions as you type, helping you write code fast ![Screenshot showing inline suggestion navigation controls.](./images/getting-started/inline-suggestion-navigation.png) -Code completions work automatically as you type, learning from your patterns and the context of your project. They're particularly helpful for writing boilerplate code, HTML structures, and repetitive patterns. +Inline suggestions work automatically as you type, learning from your patterns and the context of your project. They're particularly helpful for writing boilerplate code, HTML structures, and repetitive patterns. ## Step 2: Build complete features with agent mode diff --git a/docs/copilot/guides/prompt-engineering-guide.md b/docs/copilot/guides/prompt-engineering-guide.md index 4b2177eaf1..c426c2f079 100644 --- a/docs/copilot/guides/prompt-engineering-guide.md +++ b/docs/copilot/guides/prompt-engineering-guide.md @@ -22,7 +22,7 @@ The AI works best when it has sufficient context to know what you're doing and w #### Open files -For code completions, VS Code looks at the current and open files in your editor to analyze the context and create appropriate suggestions. Having related files open in VS Code while using inline suggestions helps set this context and lets the AI see a bigger picture of your project. +For inline suggestions, VS Code looks at the current and open files in your editor to analyze the context and create appropriate suggestions. Having related files open in VS Code while using inline suggestions helps set this context and lets the AI see a bigger picture of your project. #### Top level comment @@ -55,7 +55,7 @@ One trick to get AI on the right page, is to copy and paste sample code that is ### Be consistent and keep the quality bar high The AI is going to latch on to your code to generate suggestions that follow the existing pattern, so the adage "garbage in, garbage out" applies. -Always keeping a high quality bar can take discipline. Especially when you're coding fast and loose to get something working, you might want to disable completions while in "hacking" mode. To snooze code completions temporarily, select the Copilot menu in the Status Bar, and then select the **Snooze** button to increment the snooze time by five minutes. To resume code completions, select the **Cancel Snooze** button in the Copilot menu. +Always keeping a high quality bar can take discipline. Especially when you're coding fast and loose to get something working, you might want to disable completions while in "hacking" mode. To snooze inline suggestions temporarily, select the Copilot menu in the Status Bar, and then select the **Snooze** button to increment the snooze time by five minutes. To resume inline suggestions, select the **Cancel Snooze** button in the Copilot menu. ![Screenshot of the Copilot menu in the Status Bar with Snooze and Cancel Snooze buttons.](../images/inline-suggestions/snooze-code-completions.png) diff --git a/docs/copilot/overview.md b/docs/copilot/overview.md index 1a93121478..a18c05ac4d 100644 --- a/docs/copilot/overview.md +++ b/docs/copilot/overview.md @@ -12,7 +12,7 @@ GitHub Copilot is an AI-powered coding assistant integrated into Visual Studio C ## Core capabilities -### Code completions +### Inline suggestions Copilot provides inline code suggestions as you type, ranging from single line completions to entire function implementations. With next edit suggestions, it predicts the next logical code change based on your current context. @@ -24,7 +24,7 @@ Copilot provides inline code suggestions as you type, ranging from single line c - Write `// Create a REST API endpoint for user authentication` to generate Express.js route code - Begin a React component with `const UserProfile = ({` to receive a complete functional component with TypeScript types -Learn more about [code completions in VS Code](/docs/copilot/ai-powered-suggestions.md). +Learn more about [inline suggestions in VS Code](/docs/copilot/ai-powered-suggestions.md). ### Autonomous coding @@ -80,7 +80,7 @@ Learn more about the [smart actions in VS Code](/docs/copilot/copilot-smart-acti 1. Choose a sign-in method and follow the prompts. If you don't have a Copilot subscription yet, you'll be signed up for the [Copilot Free plan](https://docs.github.com/en/copilot/managing-copilot/managing-copilot-as-an-individual-subscriber/managing-copilot-free/about-github-copilot-free). -### Step 2: Basic code completion +### Step 2: Basic inline suggestions 1. Create a new file and start typing. VS Code shows inline suggestions in _ghost text_ in the editor. @@ -204,7 +204,7 @@ Learn more about [using MCP servers and tools](/docs/copilot/customization/mcp-s ## Best Practices -- Choose the right tool for the task. Get code completions while you're coding, use chat for natural language queries, and pick the chat mode that fits your workflow. +- Choose the right tool for the task. Get inline suggestions while you're coding, use chat for natural language queries, and pick the chat mode that fits your workflow. - Write effective prompts to get the best results. Be specific, provide the right context, and iterate often. @@ -224,7 +224,7 @@ To learn more about Copilot's security, privacy, compliance, and transparency, s ## Pricing -You can start using GitHub Copilot for free with monthly limits on completions and chat interactions. For more extensive usage, you can choose from various paid plans. +You can start using GitHub Copilot for free with monthly limits on inline suggestions and chat interactions. For more extensive usage, you can choose from various paid plans. [View detailed GitHub Copilot pricing](https://docs.github.com/en/copilot/get-started/plans) diff --git a/docs/copilot/reference/copilot-settings.md b/docs/copilot/reference/copilot-settings.md index a960853020..40484139bc 100644 --- a/docs/copilot/reference/copilot-settings.md +++ b/docs/copilot/reference/copilot-settings.md @@ -11,7 +11,7 @@ This article lists the configuration settings for GitHub Copilot in Visual Studi The team is continuously working on improving Copilot in VS Code and adding new features. Some features are still experimental. Try them out and share your feedback in [our issues](https://github.com/microsoft/vscode/issues). Get more info about the [feature lifecycle in VS Code](/docs/configure/settings.md#feature-lifecycle). > [!TIP] -> If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of completions and chat interactions. +> If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of inline suggestions and chat interactions. ## General settings @@ -29,7 +29,7 @@ The team is continuously working on improving Copilot in VS Code and adding new |------------------------|---------------| | `setting(github.copilot.editor.enableCodeActions)`
Controls if Copilot commands are shown as Code Actions when available. | `true` | | `setting(github.copilot.renameSuggestions.triggerAutomatically)`
Generate symbol renaming suggestions. | `true` | -| `setting(github.copilot.enable)`
Enable or disable code completions for specified [languages](/docs/languages/identifiers.md). | `{ "*": true, "plaintext": false, "markdown": false, "scminput": false }` | +| `setting(github.copilot.enable)`
Enable or disable inline suggestions for specified [languages](/docs/languages/identifiers.md). | `{ "*": true, "plaintext": false, "markdown": false, "scminput": false }` | | `setting(github.copilot.nextEditSuggestions.enabled)`
Enables [next edit suggestions](/docs/copilot/ai-powered-suggestions.md#next-edit-suggestions) (NES). | `true` | | `setting(editor.inlineSuggest.edits.allowCodeShifting)`
Configure if NES is able to shift your code to show a suggestion. | `"always"` | | `setting(editor.inlineSuggest.edits.renderSideBySide)`
Configure if NES can show larger suggestions side-by-side if possible, or if Copilot NES should always show larger suggestions below the relevant code. | `"auto"` | @@ -104,7 +104,7 @@ The [Chat Sessions view](/docs/copilot/copilot-coding-agent.md) provides a centr |------------------------|---------------| | `setting(inlineChat.finishOnType)`
Finish an editor inline chat session when typing outside of changed regions. | `false` | | `setting(inlineChat.holdToSpeech)`
Holding the editor inline chat keyboard shortcut (`kb(inlineChat.start)`) automatically enables speech recognition. | `true` | -| `setting(editor.inlineSuggest.syntaxHighlightingEnabled)`
Show syntax highlighting for code completions. | `true` | +| `setting(editor.inlineSuggest.syntaxHighlightingEnabled)`
Show syntax highlighting for inline suggestions. | `true` | | `setting(inlineChat.lineEmptyHint)` _(Experimental)_
Show a hint for editor inline chat on an empty line. | `false` | | `setting(inlineChat.lineNaturalLanguageHint)` _(Experimental)_
Trigger editor inline chat as soon as a line mostly consists of words. | `true` | | `setting(github.copilot.chat.editor.temporalContext.enabled)` _(Experimental)_
Include recently viewed and edited files in the context for editor inline chat. | `false` | @@ -173,7 +173,7 @@ The [Chat Sessions view](/docs/copilot/copilot-coding-agent.md) provides a centr | `setting(accessibility.signals.nextEditSuggestion)`
Plays a sound / audio cue when a next edit suggestion is available. | `{ "sound": "auto", "announcement": "auto" }` | | `setting(accessibility.verboseChatProgressUpdates)`
Provide verbose updates about chat activity. | `true` | | `setting(accessibility.verbosity.inlineChat)`
Provide information about how to access the inline editor chat accessibility help menu and alert with hints that describe how to use the feature when the input is focused. | `true` | -| `setting(accessibility.verbosity.inlineCompletions)`
Provide information about how to access the inline completions hover and Accessible View. | `true` | +| `setting(accessibility.verbosity.inlineCompletions)`
Provide information about how to access the inline suggestions hover and Accessible View. | `true` | | `setting(accessibility.verbosity.panelChat)`
Provide information about how to access the chat help menu when the chat input is focused. | `true` | | `setting(accessibility.voice.keywordActivation)`
Controls whether the keyword phrase 'Hey Code' is recognized to start a voice chat session. | `"off"` | | `setting(accessibility.voice.autoSynthesize)`
Controls whether a textual response should automatically be read out aloud when speech was used as input. | `"off"` | diff --git a/docs/copilot/reference/copilot-vscode-features.md b/docs/copilot/reference/copilot-vscode-features.md index 237fc521bd..35bba0877c 100644 --- a/docs/copilot/reference/copilot-vscode-features.md +++ b/docs/copilot/reference/copilot-vscode-features.md @@ -30,7 +30,7 @@ GitHub Copilot in Visual Studio Code provides AI-powered features to help you wr * Quick Chat (`kb(workbench.action.quickchat.toggle)`): ask quick questions without leaving your current task * AI in the [editor](/docs/copilot/ai-powered-suggestions.md) - * Code completions: get suggestions as you type, press `kb(editor.action.inlineSuggest.commit)` to accept a suggestion + * Inline suggestions: get suggestions as you type, press `kb(editor.action.inlineSuggest.commit)` to accept a suggestion * Edit context menu actions: access common AI actions like explaining or fixing code, generating tests, or reviewing a text selection * Code actions: get editor code actions (lightbulb) to fix linting and compiler errors @@ -200,12 +200,12 @@ Customize your chat experience to generate responses that match your coding styl ## Editor AI features -As you're coding in the editor, you can use Copilot to generate code completions as you're typing. Invoke Inline Chat to ask questions and get help from Copilot, while staying in the flow of coding. For example, ask Copilot to generate unit tests for a function or method. Get more information about [code completions](/docs/copilot/ai-powered-suggestions.md) and [Inline Chat](/docs/copilot/chat/inline-chat.md). +As you're coding in the editor, you can use Copilot to generate inline suggestions as you're typing. Invoke Inline Chat to ask questions and get help from Copilot, while staying in the flow of coding. For example, ask Copilot to generate unit tests for a function or method. Get more information about [inline suggestions](/docs/copilot/ai-powered-suggestions.md) and [Inline Chat](/docs/copilot/chat/inline-chat.md). | Action | Description | |--------|-------------| -| Code completions | Start typing in the editor and get [code suggestions](/docs/copilot/ai-powered-suggestions.md) that match your coding style and take your existing code into account. | -| Code comments | Provide a code completion prompt by writing instructions in a code comment.
Example: `# write a calculator class with methods for add, subtract, and multiply. Use static methods.` | +| Inline suggestions | Start typing in the editor and get [inline suggestions](/docs/copilot/ai-powered-suggestions.md) that match your coding style and take your existing code into account. | +| Code comments | Provide an inline suggestions prompt by writing instructions in a code comment.
Example: `# write a calculator class with methods for add, subtract, and multiply. Use static methods.` | | `kb(inlinechat.start)` | Start editor inline chat to send a chat request directly from the editor. Use natural language and reference chat variables and slash commands to provide context. | | `kb(editor.action.rename)` | Get AI-powered suggestions when renaming symbols in your code. | | Context menu actions | Use the editor context menu to access common AI actions, such as explaining code, generating tests, reviewing code, and more. Right-click in the editor to open the context menu and select **Generate Code**. | @@ -213,7 +213,7 @@ As you're coding in the editor, you can use Copilot to generate code completions > **Tips** > -> * Use meaningful method or function names to get better code completions quicker. +> * Use meaningful method or function names to get better inline suggestions quicker. > * Select a code block to scope your Inline Chat prompt or attach relevant context by attaching files or symbols. > * Use the editor context menu options to access common AI-powered actions directly from the editor. diff --git a/docs/copilot/setup.md b/docs/copilot/setup.md index 93014e6bb0..e5336b7a68 100644 --- a/docs/copilot/setup.md +++ b/docs/copilot/setup.md @@ -9,7 +9,7 @@ MetaSocialImage: images/shared/github-copilot-social.png This guide walks you through setting up GitHub Copilot in Visual Studio Code. To use Copilot in VS Code, you need to have access to GitHub Copilot with your GitHub account. > [!TIP] -> If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of completions and chat interactions. +> If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of inline suggestions and chat interactions. ## Get access to GitHub Copilot @@ -17,7 +17,7 @@ There are different ways to get access to GitHub Copilot: | Type of User | Description | |--------------------------------|-------------| -| Individual | | +| Individual | | | Organization/Enterprise member | | ## Set up Copilot in VS Code diff --git a/docs/toc.json b/docs/toc.json index 159b895d96..3212a94e58 100644 --- a/docs/toc.json +++ b/docs/toc.json @@ -117,7 +117,7 @@ ] } ], - ["Code Completions", "/docs/copilot/ai-powered-suggestions"], + ["Inline Suggestions", "/docs/copilot/ai-powered-suggestions"], ["Copilot Coding Agent", "/docs/copilot/copilot-coding-agent"], ["", "", { "name": "Customization",