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
+27-19Lines changed: 27 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ We're excited to announce the preview of **Copilot Next Edit Suggestions** (aka
16
16
17
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 suggestions.
18
18
19
-
<!-- TODO: Video about NES from Rob-->
19
+
<!-- TODO: Video about NES from Olivia-->
20
20
21
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.
22
22
@@ -32,38 +32,46 @@ Like completions, all you need to do to start getting suggestions from NES is to
32
32
33
33
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).
34
34
35
-
An arrow in the gutter indicates if there is an edit suggestion available:
36
-

35
+
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.
36
+

37
37
38
-
If an edit suggestion is below the current editor view, the arrow will point down instead of right:
39
-

38
+
<!--  -->
39
+
<!-- -->
40
40
41
41
You can hover over the arrow to explore the edit suggestion menu, which includes keyboard shortcuts and settings configuration:
42
-

42
+

43
+
<!--  -->
43
44
44
45
Suggestions may span a single symbol, an entire line, or multiple lines, depending on the scope of the potential change.
45
46
46
47
## Example scenarios
47
-
Copilot NES is your AI companion as you make changes that may cascade throughout your file or project. The following are a few examples where NES shines.
48
+
Copilot NES is your AI companion as you make changes that may cascade throughout your file or project, and you'll see it shine in a variety of scenarios.
48
49
49
-
**Changing intent:** Copilot NES suggests changes that match a change in intent. For example, changing a class from `Point` to `Point3D` will lead to a suggestion to add a `z` variable to the class definition:
50
-

50
+
Our development team has been self-hosting on NES for a while, and one of our engineers remembers one of his first "aha!" moments with NES. He was writing a condition along the lines of `if (something !== 'a' || something !== 'b')`. NES caught that this statement would always evaluate to true (thanks De Morgan's Law!) and suggested replacing `||` with `&&`:
51
+

51
52
52
-
After accepting the change, NES next recommends adding `z` to the distance calculation:
53
-

53
+
The following are a few more examples where NES shines.
54
54
55
-
**Using newly added variables or logic:**Copilot NES helps you use new code you just added. This may be a small change, like calling a new method parameter in the actual method.
55
+
**Catching and correcting mistakes:**Mistakes are a natural part of writing code, and Copilot NES is there to help catch them (sometimes before you even realize the mistake was there!).
56
56
57
-
It could also be more complex: if you added a new command to your VS Code extension's `extension.ts`, NES will first suggest to clean up the command in `extension.ts`:
58
-

57
+
NES helps with small mistakes like typos - maybe you were coding quickly in the zone, and you wrote `conts` instead of `const`:
58
+

59
59
60
-
And then when you open `package.json`, NES may suggest registering that command as well:
61
-

60
+
NES can also help with more challenging mistakes in logic, like an evaluation that should've used `>` instead of `<`:
61
+

62
62
63
-
**Refactoring:** If you use a new name or naming pattern, Copilot suggests to rename subsequent variables similarly.
63
+
**Changing intent:** Copilot NES suggests changes that match a change in intent. For example, changing a class from `Point` to `Point3D` will lead to a suggestion to add a `z` variable to the class definition and to the distance calculation:
64
+

65
+
<!--  -->
66
+
67
+
**Using newly added variables or logic:** Copilot NES helps you use new code you just added. This may be a small change, like calling a new method parameter in the actual method.
68
+
69
+
It could also be more complex: if you added a new command to your VS Code extension's `extension.ts`, NES will first suggest to clean up the command in `extension.ts`. Then when you open `package.json`, NES may suggest registering that command as well:
70
+

71
+
<!--  -->
72
+
<!--  -->
64
73
65
-
**Correcting mistakes:** Copilot NES helps with mistakes like typos. It can also help with more challenging mistakes in logic, like if a statement should've used `AND` instead of `OR`.
66
-
<!-- TODO: Add image -->
74
+
**Refactoring:** If you use a new name or naming pattern, Copilot suggests to rename subsequent variables similarly.
67
75
68
76
## Share your feedback
69
77
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.
0 commit comments