You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/copilot/ai-powered-suggestions.md
+27-31Lines changed: 27 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,9 +79,8 @@ Copilot NES is currently in preview. You can enable it via the VS Code setting `
79
79
1. Search for `github.copilot.nextEditSuggestions.enabled`
80
80
1. Enable the setting
81
81
82
-
If you are a Copilot Business or Enterprise user, an administrator of your organization must opt in to the use of Copilot "Editor Preview Features," in addition to you setting `setting(github.copilot.nextEditSuggestions.enabled)` in your editor.
83
-
84
-
You can learn more about [managing policies for Copilot in your organization](https://docs.github.com/en/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization).
82
+
> [!IMPORTANT]
83
+
> If you are a Copilot Business or Enterprise user, an administrator of your organization must opt in to the use of Copilot Editor Preview Features, in addition to you setting `setting(github.copilot.nextEditSuggestions.enabled)` in your editor. Learn more about [managing policies for Copilot in your organization](https://docs.github.com/en/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization).
85
84
86
85
### Navigate and accept edit suggestions
87
86
@@ -139,16 +138,16 @@ If an edit suggestion is below the current editor view, the arrow will point dow
139
138
140
139
***Matching code style**. After copy-pasting some code, Copilot will suggest how to adjust it to match the current code where the paste happened.
141
140
142
-
### Further configuring edit suggestions
141
+
### Edit suggestions configuration options
143
142
144
-
To use Copilot NES, you must set `setting(github.copilot.nextEditSuggestions.enabled)`. There are a couple of additional settings you can also use to configure your Copilot NES experience:
143
+
To further configure edit suggestions, configure these settings:
145
144
146
-
*`setting(editor.inlineSuggest.edits.codeShifting)`: You can disable this setting if you never want Copilot NES to shift your code to show a suggestion.
145
+
*`setting(editor.inlineSuggest.edits.codeShifting)`: disable this setting if you never want Copilot NES to shift your code when showing a suggestion.
***auto (default)**: Show larger suggestions side-by-side if there is enough space in the viewport, otherwise the suggestions are shown below the relevant code.
151
-
***never**: Always show larger suggestions below the relevant code.
149
+
***auto (default)**: show larger edit suggestions side-by-side if there is enough space in the viewport, otherwise the suggestions are shown below the relevant code.
150
+
***never**: never show suggestions side-by-side, always show suggestions below the relevant code.
152
151
153
152
## Tips & tricks
154
153
@@ -160,33 +159,32 @@ To give you relevant inline suggestions, Copilot looks at the current and open f
160
159
161
160
You can temporarily enable or disable code completions either for all languages, or for specific languages only.
162
161
163
-
1. To enable or disable Copilot completions, select **Configure Code Completions...** from the Copilot menu in the VS Code title bar.
1. If you are disabling GitHub Copilot, you are asked whether you want to disable suggestions globally, or for the language of the file you are currently editing.
164
+
1. Select **Configure Code Completions...** from the Copilot menu in the VS Code title bar.
165
+
1. Select **Enable Completions**.
168
166
169
-
* To disable suggestions from GitHub Copilot globally, select **Disable Globally**.
170
-
* To disable suggestions from GitHub Copilot for the specified language, select **Disable for \<language\>**.
167
+
To disable completions:
171
168
172
-

169
+
1. Select **Configure Code Completions...** from the Copilot menu in the VS Code title bar.
170
+
1. To disable completions globally, select **Disable Globally**.
171
+
1. To disable completions for the language of the file you are currently editing, select **Disable for \<language\>**.
173
172
174
173
### Change the AI model
175
174
176
-
Different Large Language Models (LLMs) are trained on different types of data and might have different capabilities and strengths. With Copilot, you can change the language model that is used to generate completions. To change the current model:
177
-
178
-
1. Select **Configure Code Completions...** from the Copilot menu in the VS Code title bar.
Different Large Language Models (LLMs) are trained on different types of data and might have different capabilities and strengths. You can change the language model that is used to generate code completions.
181
176
182
-
1. Select **Change Completions Model...** from the Configure Copilot Completions menu.
177
+
To change the model that is used for code completions:
1. Select **Configure Code Completions...** from the Copilot menu in the VS Code title bar.
180
+
1. Select **Change Completions Model...**, and then select one of the models.
185
181
186
182
> [!NOTE]
187
-
> The list of available models might vary and change over time. If you are a Copilot Business or Enterprise user, you will also need your Administrator 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.
183
+
> The list of available models might vary and change over time. 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.
184
+
185
+
## Settings
188
186
189
-
### Settings
187
+
### Code completions settings
190
188
191
189
*`setting(editor.inlineSuggest.enabled)` - enable or disable inline completions.
192
190
@@ -196,6 +194,8 @@ Different Large Language Models (LLMs) are trained on different types of data an
196
194
197
195
*`setting(editor.inlineSuggest.syntaxHighlightingEnabled)` - enable or disable syntax highlighting for inline completions.
198
196
197
+
### Next Edit Suggestions settings
198
+
199
199
*`setting(github.copilot.nextEditSuggestions.enabled)` - enable Copilot Next Edit Suggestions (Copilot NES).
200
200
201
201
*`setting(editor.inlineSuggest.edits.codeShifting)` - configure if Copilot NES is able to shift your code to show a suggestion.
@@ -204,12 +204,8 @@ Different Large Language Models (LLMs) are trained on different types of data an
204
204
205
205
## Next steps
206
206
207
-
* Get started with the introductory [Copilot tutorial](/docs/copilot/getting-started-chat.md) to get set up with Copilot in VS Code and experience Copilot hands-on.
208
-
209
-
* Learn how you can use AI chat conversations with [Copilot Chat](/docs/copilot/copilot-chat.md).
210
-
211
-
## Additional resources
207
+
* Discover the key features with the [Copilot Quickstart](/docs/copilot/getting-started-chat.md).
212
208
213
-
You can read more about [Copilot](https://github.com/features/copilot) and how to use it in VS Code in the [GitHub Copilot documentation](https://docs.github.com/copilot/getting-started-with-github-copilot?tool=vscode).
209
+
* Use AI chat conversations with [Copilot Chat](/docs/copilot/copilot-chat.md).
214
210
215
-
Or check out the [VS Code Copilot Series](https://www.youtube.com/playlist?list=PLj6YeMhvp2S5_hvBl2SE-7YCHYlLQ0bPt) on YouTube, where you can find more introductory content and programming-specific videos for using Copilot with [Python](https://www.youtube.com/watch?v=DSHfHT5qnGc), [C#](https://www.youtube.com/watch?v=VsUQlSyQn1E), [Java](https://www.youtube.com/watch?v=zhCB95cE0HY), [PowerShell](https://www.youtube.com/watch?v=EwtRzAFiXEM), [C++](https://www.youtube.com/watch?v=ZfT2CXY5-Dc), and more.
211
+
* Watch the videos in our [VS Code Copilot Series](https://www.youtube.com/playlist?list=PLj6YeMhvp2S5_hvBl2SE-7YCHYlLQ0bPt) on YouTube.
0 commit comments