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
+19-8Lines changed: 19 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,14 +69,17 @@ Inline suggestions are great at autocompleting a section of code. But since most
69
69
70
70
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.
71
71
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).
80
83
81
84
### Navigate and accept edit suggestions
82
85
@@ -123,6 +126,14 @@ It could also be more complex: if you added a new command to your VS Code extens
123
126

124
127
***Matching code style**. After copy-pasting some code, Copilot will suggest how to adjust it to match the current code where the paste happened.
125
128
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.
***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.
0 commit comments