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
GitHub Copilot code completions are great at autocompleting a section of code currently being edited. But since most coding activity is editing existing code, it's a natural evolution of Copilot 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.
14
14
15
-
We're excited to announce the preview of Copilot Next Edit Suggestions (aka "Copilot NES"), which is this evolution of Copilot completions. NES both predicts the location of the next edit you'll want to make and what that edit should be.
15
+
We're excited to announce the preview of **Copilot Next Edit Suggestions** (aka "Copilot NES"), which is this evolution of Copilot completions.
16
+
17
+
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. 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.
16
18
17
19
<!-- TODO: Video about NES from Rob -->
18
20
19
21
You may have seen [previous work from the GitHub Next Team on NES](https://githubnext.com/projects/copilot-next-edit-suggestions/) – this is the evolution of the Next Team's great work, now part of the existing GitHub Copilot extensions.
20
22
21
23
## Getting your first suggestions
22
-
You can enable NES via the VS Code setting `setting(github.copilot.chat.nextEdits.enabled)`.
24
+
You can enable NES via the VS Code setting `setting(github.copilot.nextEdits.enabled)`.
23
25
24
26
> [!NOTE]
25
27
> If you are a Copilot Business or Enterprise user, your organization admin will need to enable NES.
26
28
<!-- TODO: Any other details or actionable link? -->
27
29
28
30
Like completions, all you need to do to start getting suggestions from NES is to start coding!
29
31
30
-
When you're presented with an edit suggestion, you can navigate to it with the `kbstyle(Tab)` key and then accept it with the `kbstyle(Tab)` key again. An arrow in the gutter indicates if there is an edit suggestion available. If an edit suggestion is below the current editor view, the arrow will point down instead of right.
32
+
When you're presented with an edit suggestion, you can navigate to it with the `kbstyle(Tab)` key and then accept it with the `kbstyle(Tab)` key again, saving you time to find the next relevant edit (no manual searching through files or references required).
33
+
34
+
An arrow in the gutter indicates if there is an edit suggestion available. If an edit suggestion is below the current editor view, the arrow will point down instead of right.
31
35
32
36
<!-- TODO: Add image or gif; gif with screencast mode (to show using tab) may be most effective -->
Copy file name to clipboardExpand all lines: docs/copilot/ai-powered-suggestions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ Inline suggestions are great at autocompleting a section of code currently being
68
68
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. 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.
69
69
70
70
> [!NOTE]
71
-
> Copilot NES is currently in preview. You can enable NES via the VS Code setting `setting(github.copilot.chat.nextEdits.enabled)`.
71
+
> Copilot NES is currently in preview. You can enable NES via the VS Code setting `setting(github.copilot.nextEdits.enabled)`.
72
72
>
73
73
> For general information about working with settings in VS Code, refer to [User and workspace settings](/docs/getstarted/settings.md).
74
74
>
@@ -145,7 +145,7 @@ You can temporarily enable or disable code completions either for all languages,
145
145
146
146
*`setting(editor.inlineSuggest.syntaxHighlightingEnabled)` - enable or disable syntax highlighting for inline completions.
147
147
148
-
*`setting(github.copilot.chat.nextEdits.enabled)` - enable Copilot Next Edit Suggestions (preview)
148
+
*`setting(github.copilot.nextEdits.enabled)` - enable Copilot Next Edit Suggestions (preview)
Copy file name to clipboardExpand all lines: docs/copilot/copilot-settings.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The team is continuously working on improving Copilot in VS Code and adding new
26
26
*`setting(chat.commandCenter.enabled)` <iclass="codicon codicon-beaker"></i>: Controls whether the command center shows a menu for chat actions.
27
27
*`setting(workbench.commandPalette.experimental.askChatLocation)` <iclass="codicon codicon-beaker"></i>: Controls where the Command Palette should ask chat questions.
28
28
*`setting(github.copilot.chat.search.semanticTextResults)` <iclass="codicon codicon-beaker"></i>: Enables semantic search results in the Search view.
29
-
*`setting(github.copilot.chat.nextEdits.enabled)` <iclass="codicon codicon-beaker"></i>: Enables Copilot Next Edit Suggestions (preview).
29
+
*`setting(github.copilot.nextEdits.enabled)` <iclass="codicon codicon-beaker"></i>: Enables Copilot Next Edit Suggestions (preview).
Copy file name to clipboardExpand all lines: docs/copilot/copilot-vscode-features.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ As you're coding in the editor, you can use Copilot to generate code completions
114
114
| Action | Description |
115
115
|--------|-------------|
116
116
| Code completions | Start typing in the editor and Copilot provides code suggestions that match your coding style and take your existing code into account. |
117
-
| Next Edit Suggestions (preview) | 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. You can enable NES via the VS Code setting `setting(github.copilot.chat.nextEdits.enabled)`. |
117
+
| Next Edit Suggestions (preview) | 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. You can enable NES via the VS Code setting `setting(github.copilot.nextEdits.enabled)`. |
118
118
| Code comments | Provide a code completion prompt to Copilot by writing instructions in a code comment.<br/>Example: `# write a calculator class with methods for add, subtract, and multiply. Use static methods.`|
119
119
|`kb(inlinechat.start)`| Start **Inline Chat** to send a chat request to Copilot directly from the editor. Use natural language or use `/` commands to give instructions to Copilot. |
120
120
| Prompt from the editor <iclass="codicon codicon-beaker"></i> | Start typing natural language directly in code and Copilot detects that you're not writing code but prompting, and will automatically start Inline Chat for your prompt. |
0 commit comments