Skip to content

Commit 9812f0e

Browse files
committed
Edit pass
1 parent c024a74 commit 9812f0e

File tree

4 files changed

+27
-40
lines changed

4 files changed

+27
-40
lines changed

docs/copilot/ai-powered-suggestions.md

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,8 @@ Copilot NES is currently in preview. You can enable it via the VS Code setting `
7979
1. Search for `github.copilot.nextEditSuggestions.enabled`
8080
1. Enable the setting
8181

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).
8584
8685
### Navigate and accept edit suggestions
8786

@@ -139,16 +138,16 @@ If an edit suggestion is below the current editor view, the arrow will point dow
139138

140139
* **Matching code style**. After copy-pasting some code, Copilot will suggest how to adjust it to match the current code where the paste happened.
141140

142-
### Further configuring edit suggestions
141+
### Edit suggestions configuration options
143142

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:
145144

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.
147146

148147
* `setting(editor.inlineSuggest.edits.renderSideBySide)`:
149148

150-
* **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.
152151

153152
## Tips & tricks
154153

@@ -160,33 +159,32 @@ To give you relevant inline suggestions, Copilot looks at the current and open f
160159

161160
You can temporarily enable or disable code completions either for all languages, or for specific languages only.
162161

163-
1. To enable or disable Copilot completions, select **Configure Code Completions...** from the Copilot menu in the VS Code title bar.
164-
165-
![Screenshot showing Copilot menu, highlighting Configure Code Completions.](./images/overview/configure-completions.png)
162+
To enable completions:
166163

167-
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**.
168166

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:
171168

172-
![Screenshot showing the VS Code command menu for Copilot, highlighting the options to disable completions.](./images/inline-suggestions/copilot-disable-completions.png)
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\>**.
173172

174173
### Change the AI model
175174

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.
179-
180-
![Screenshot showing Copilot menu, highlighting Configure Code Completions.](./images/overview/configure-completions.png)
175+
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.
181176

182-
1. Select **Change Completions Model...** from the Configure Copilot Completions menu.
177+
To change the model that is used for code completions:
183178

184-
![Screenshot showing Copilot Completions menu, highlighting option to change completions model](./images/overview/change-completions-model.png)
179+
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.
185181

186182
> [!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
188186

189-
### Settings
187+
### Code completions settings
190188

191189
* `setting(editor.inlineSuggest.enabled)` - enable or disable inline completions.
192190

@@ -196,6 +194,8 @@ Different Large Language Models (LLMs) are trained on different types of data an
196194

197195
* `setting(editor.inlineSuggest.syntaxHighlightingEnabled)` - enable or disable syntax highlighting for inline completions.
198196

197+
### Next Edit Suggestions settings
198+
199199
* `setting(github.copilot.nextEditSuggestions.enabled)` - enable Copilot Next Edit Suggestions (Copilot NES).
200200

201201
* `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
204204

205205
## Next steps
206206

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).
212208

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).
214210

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.

docs/copilot/images/inline-suggestions/copilot-disable-completions.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/copilot/images/overview/change-completions-model.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/copilot/images/overview/configure-completions.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)