Skip to content

Commit a9700fc

Browse files
author
bamurtaugh
committed
Update settings
1 parent ad022fc commit a9700fc

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

docs/copilot/ai-powered-suggestions.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,17 @@ Inline suggestions are great at autocompleting a section of code. But since most
6969

7070
Based on the edits you're making, Copilot NES both predicts the location of the next edit you'll want to make and what that edit should be. NES helps you stay in the flow, suggesting future changes relevant to your current work, and you can simply `kbstyle(Tab)` to quickly navigate and accept Copilot's suggestions. Suggestions may span a single symbol, an entire line, or multiple lines, depending on the scope of the potential change.
7171

72-
> [!NOTE]
73-
> Copilot NES is currently in preview. You can enable NES via the VS Code setting `setting(github.copilot.nextEditSuggestions.enabled)`.
74-
>
75-
> For general information about working with settings in VS Code, refer to [User and workspace settings](/docs/getstarted/settings.md).
76-
>
77-
> If you are a Copilot Business or Enterprise user, an administrator of your organization must opt in to the use of previews of Copilot features, in addition to you setting `setting(github.copilot.nextEditSuggestions.enabled)` in your editor.
78-
>
79-
> 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).
72+
73+
### Enabling edit suggestions
74+
75+
Copilot NES is currently in preview. You can enable NES via the VS Code setting `setting(github.copilot.nextEditSuggestions.enabled)`, with the following steps:
76+
* Open the VS Code Settings editor (`kb(workbench.action.openSettings)`)
77+
* Search for `setting(github.copilot.nextEditSuggestions.enabled)`
78+
* Enable the setting
79+
80+
If you are a Copilot Business or Enterprise user, an administrator of your organization must opt in to the use of previews of Copilot features, in addition to you setting `setting(github.copilot.nextEditSuggestions.enabled)` in your editor.
81+
82+
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).
8083

8184
### Navigate and accept edit suggestions
8285

@@ -123,6 +126,14 @@ It could also be more complex: if you added a new command to your VS Code extens
123126
![NES suggesting change after updating function name](./images/inline-suggestions/nes-gutter.gif)
124127
* **Matching code style**. After copy-pasting some code, Copilot will suggest how to adjust it to match the current code where the paste happened.
125128

129+
### Further configuring Next Edit Suggestions
130+
131+
You 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 NES experience:
132+
* `setting(editor.inlineSuggest.edits.codeShifting)`: You can disable this setting if you never want NES to shift your code to show a suggestion.
133+
* `setting(editor.inlineSuggest.edits.renderSideBySide)`:
134+
* **auto (default)**: Show larger suggestions side-by-side if there is enough space in the viewport, otherwise the suggestions is shown below the relevant code.
135+
* **never**: Always show larger suggestions below the relevant code.
136+
126137
## Tips & tricks
127138

128139
### Context

0 commit comments

Comments
 (0)