Skip to content

Commit eed7016

Browse files
author
bamurtaugh
committed
Updates
1 parent 7428690 commit eed7016

File tree

6 files changed

+29
-14
lines changed

6 files changed

+29
-14
lines changed

blogs/2025/next-edit-suggestions.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ TOCTitle: Copilot Next Edit Suggestions (preview)
44
PageTitle: Copilot Next Edit Suggestions (preview)
55
MetaDescription: Announcing the Next Edit Suggestions (NES) feature for GitHub Copilot in Visual Studio Code.
66
Date: 2025-02-05
7-
Author: Brigit Murtaugh, Burke Holland, Olivia Guzzardo
7+
Author: Brigit Murtaugh, Burke Holland
88
---
99

1010
# Copilot Next Edit Suggestions (preview)
11-
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)
1212

1313
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.
1414

@@ -44,10 +44,13 @@ Suggestions may span a single symbol, an entire line, or multiple lines, dependi
4444
## Example scenarios
4545
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.
4646

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+
![NES for updating Point to Point3D](point3d.png)
49+
50+
After accepting the change, NES next recommends adding `z` to the distance calculation:
51+
![NES for updating Point to Point3D](point3d-distance.png)
4952

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.
5154

5255
**Refactoring:** Rename a variable once in a file, and Copilot NES will suggest to update it everywhere else.
5356
<!-- TODO: Add image -->
@@ -62,10 +65,8 @@ Please be sure to use [VS Code Insiders](https://code.visualstudio.com/insiders/
6265

6366
You can read our [full NES docs](aka.ms/gh-copilot-nes-docs) for more information and scenarios as we expand the NES experience.
6467

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!
6869

6970
Happy coding!
7071

71-
Brigit, Burke, and Olivia
72+
Brigit and Burke

blogs/2025/point3d-distance.png

Lines changed: 3 additions & 0 deletions
Loading

blogs/2025/point3d.png

Lines changed: 3 additions & 0 deletions
Loading

docs/copilot/ai-powered-suggestions.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Based on the edits you're making, NES both predicts the location of the next edi
7575
> 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.
7676
<!-- TODO: Any other details or actionable link? -->
7777
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 -->
7979

8080
### Navigate and accept edit suggestions
8181

@@ -92,15 +92,17 @@ You can hover over the arrow to explore the edit suggestion menu, which includes
9292

9393
### Use cases for Next Edit Suggestions
9494

95-
<!-- TODO: Polish entire section, add maybe an image per example -->
96-
9795
**Changing intent**
9896

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+
![NES for updating Point to Point3D](./images/inline-suggestions/point3d.png)
99+
100+
After accepting the change, NES next recommends adding `z` to the distance calculation:
101+
![NES for adding z to distance calculation of Point3D](./images/inline-suggestions/point3d-distance.png)
100102

101103
**Adding new variables or logic**
102104

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.
104106

105107
**Refactoring**
106108

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)