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: blogs/2025/next-edit-suggestions.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,33 +10,37 @@ Author: Brigit Murtaugh
10
10
# Copilot Next Edit Suggestions (preview)
11
11
Feburary 5, 2025 by Brigit Murtaugh, @bamurtaugh
12
12
13
-
GitHub Copilot inline suggestions are great at autocompleting a section of code currently being edited, offering suggestions to complete your code, comments, tests, and more. But since most coding activity is editing existing code, it's a natural evolution of Copilot Completions to also help with edits, both at your current cursor location and further away.
13
+
GitHub Copilot inline suggestions are great at autocompleting a section of code currently being edited, offering suggestions to complete your code, comments, tests, and more. But since most coding activity is editing existing code, it's a natural evolution of Copilot Completions to also help with edits, both at your current cursor location and further away.
14
14
15
-
We’re excited to announce the preview of Copilot Next Edit Suggestions (aka “Copilot NES”), which 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 both predicts the location of the next edit you'll want to make and what that edit should be.
16
16
17
-
<!-- TODO: Video about NES from Burke, like what he created for Copilot Edits blog-->
17
+
<!-- TODO: Video about NES from Rob-->
18
18
19
-
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
-
21
-
Copilot NES is currently in public preview. You can sign up for access via [the watilist](TODO).
19
+
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.
22
20
23
21
## Getting your first suggestions
22
+
You can enable NES via the VS Code setting `setting(github.copilot.chat.nextEdits.enabled)`.
23
+
24
+
> [!NOTE]
25
+
> If you are a Copilot Business or Enterprise user, your organization admin will need to enable NES.
26
+
<!-- TODO: Any other details or actionable link? -->
27
+
24
28
Like completions, all you need to do to start getting suggestions from NES is to start coding!
25
29
26
-
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.
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.
27
31
28
32
<!-- TODO: Add image or gif; gif with screencast mode (to show using tab) may be most effective -->
29
33
30
34
You can hover over the arrow to explore the edit suggestion menu, which includes keyboard shortcuts and settings configuration:
31
35
32
36
<!-- TODO: Add image -->
33
37
34
-
Suggestions may span a single symbol, an entire line, or multiple lines, depending on the scope of the potential change.
38
+
Suggestions may span a single symbol, an entire line, or multiple lines, depending on the scope of the potential change.
35
39
36
40
## Example scenarios
37
41
Copilot NES is an expert companion as you make changes that may cascade throughout your file or project. The following are a few examples where NES shines.
38
42
39
-
**Refactoring:** Rename a variable once in a file, and Copilot NES will suggest to update it everywhere else.
43
+
**Refactoring:** Rename a variable once in a file, and Copilot NES will suggest to update it everywhere else.
40
44
<!-- TODO: Add image -->
41
45
42
46
**Correcting mistakes:** Copilot NES helps with mistakes like typos. It can also help with more challenging mistakes in logic, i.e. if a statement should’ve used AND instead of OR.
@@ -45,16 +49,14 @@ Copilot NES is an expert companion as you make changes that may cascade througho
45
49
**Changing intent:** Copilot NES suggests changes that match a change in intent, i.e. changing a function `moveCursorUp` to `moveCursorDown` should adjust all the code logically.
46
50
<!-- TODO: Add image -->
47
51
48
-
## Sign up and share your feedback
49
-
You can sign up for the NES public preview via [the watilist](TODO).
50
-
51
-
Once you get access, be sure to use [VS Code Insiders](https://code.visualstudio.com/insiders/) and the pre-release version of the [GitHub Copilot Chat extension](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) to get all of the latest features and fixes.
52
+
## Share your feedback
53
+
NES is rapidly evolving, and we can't wait to get your feedback via issues in [our repo](https://github.com/microsoft/vscode-copilot-release) – this will be instrumental to improving the experience.
52
54
53
-
We’d also love to hear your feedback via issues in [our repo](https://github.com/microsoft/vscode-copilot-release) – it’ll be instrumental to improving the experience.
55
+
Please be sure to use [VS Code Insiders](https://code.visualstudio.com/insiders/) and the pre-release version of the [GitHub Copilot Chat extension](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) to get all of the latest features and fixes.
54
56
55
-
You can read our [full NES docs](TODO) for more information and scenarios as we expand the NES experience.
57
+
You can read our [full NES docs](aka.ms/gh-copilot-nes-docs) for more information and scenarios as we expand the NES experience.
Copy file name to clipboardExpand all lines: docs/copilot/ai-powered-suggestions.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,9 @@ Based on the edits you're making, NES both predicts the location of the next edi
71
71
> Copilot NES is currently in preview. You can enable NES via the VS Code setting `setting(github.copilot.chat.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
+
>
75
+
> If you are a Copilot Business or Enterprise user, your organization admin will need to enable NES.
76
+
<!-- TODO: Any other details or actionable link? -->
74
77
75
78
<!-- TODO: Add gif or video advocacy will create for blog post (could be image, but think gif is more interesting and then remaining examples can be static images) -->
0 commit comments