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
Feburary 5, 2025 by [Brigit Murtaugh](https://github.com/bamurtaugh), [Burke Holland](https://github.com/burkeholland), [Olivia Guzzardo](https://github.com/olguzzar)
11
+
Feburary 5, 2025 by [Brigit Murtaugh](https://github.com/bamurtaugh), [Burke Holland](https://github.com/burkeholland)
12
12
13
13
GitHub Copilot code completions are great at autocomplete, providing the predictive ability to suggest the code that was in your head without you even having to ask for it. But since most coding activity is editing existing code, it's a natural evolution of completions to also help with edits. Edits are often not made in isolation - there's a logical flow of what edits need to be made as you iterate on your project - and they can happen both at your current cursor location and further away.
14
14
@@ -44,10 +44,13 @@ Suggestions may span a single symbol, an entire line, or multiple lines, dependi
44
44
## Example scenarios
45
45
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.
46
46
47
-
**Changing intent:** Copilot NES suggests changes that match a change in intent. For example, changing a class from `point` to `point3d` will add a `z` variable to the class definition and its distance calculation.
48
-
<!-- TODO: Add image -->
47
+
**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:
48
+

49
+
50
+
After accepting the change, NES next recommends adding `z` to the distance calculation:
51
+

49
52
50
-
**Adding new 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. It could also be more complex: if you added a new command to your VS Code extension's `extension.ts`, when you open `package.json`, NES may suggest adding that command as well.
53
+
**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. It could also be more complex: if you added a new command to your VS Code extension's `extension.ts`, when you open `package.json`, NES may suggest adding that command as well.
51
54
52
55
**Refactoring:** Rename a variable once in a file, and Copilot NES will suggest to update it everywhere else.
53
56
<!-- TODO: Add image -->
@@ -62,10 +65,8 @@ Please be sure to use [VS Code Insiders](https://code.visualstudio.com/insiders/
62
65
63
66
You can read our [full NES docs](aka.ms/gh-copilot-nes-docs) for more information and scenarios as we expand the NES experience.
64
67
65
-
NES is a next step in an AI that anticipates what you'll need to do next - the best prompt is the one that you don't have to write.
66
-
67
-
We can't wait to see what you build!
68
+
We're excited about NES as a next step in an AI where the LLM anticipates what you'll need to do next - the best prompt is the one that you don't have to write. We hope you're excited too and look forward to seeing what you build!
Copy file name to clipboardExpand all lines: docs/copilot/ai-powered-suggestions.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ Based on the edits you're making, NES both predicts the location of the next edi
75
75
> If you are a Copilot Business or Enterprise user, your organization admin will need to enable NES, in addition to you setting `setting(github.copilot.nextEdits.enabled)` in your editor.
76
76
<!-- TODO: Any other details or actionable link? -->
77
77
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)-->
78
+
<!-- TODO: Add video from blog -->
79
79
80
80
### Navigate and accept edit suggestions
81
81
@@ -92,15 +92,17 @@ You can hover over the arrow to explore the edit suggestion menu, which includes
92
92
93
93
### Use cases for Next Edit Suggestions
94
94
95
-
<!-- TODO: Polish entire section, add maybe an image per example -->
96
-
97
95
**Changing intent**
98
96
99
-
***Copilot suggests changes to the rest of your code that match a new change in intent.** For example, changing a class from `point` to `point3d` will add a `z` variable to the class definition and its distance calculation.
97
+
***Copilot suggests changes to the rest of your code that match a new change in intent.** For example, when changing a class from `Point` to `Point3D`, Copilot will suggest to add a `z` variable to the class definition:
98
+

99
+
100
+
After accepting the change, NES next recommends adding `z` to the distance calculation:
101
+

100
102
101
103
**Adding new variables or logic**
102
104
103
-
***Add an argument, variable, or function**. 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. It could also be more complex: if you added a new command to your VS Code extension's `extension.ts`, when you open `package.json`, NES may suggest adding that command as well.
105
+
***Using newly added arguments, variables, or functions**. 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. It could also be more complex: if you added a new command to your VS Code extension's `extension.ts`, when you open `package.json`, NES may suggest adding that command as well.
0 commit comments