Skip to content

Commit e588d81

Browse files
author
bamurtaugh
committed
Blog updates
1 parent 9dbb169 commit e588d81

File tree

8 files changed

+48
-19
lines changed

8 files changed

+48
-19
lines changed

blogs/2025/nes-arrow-directions.gif

Lines changed: 3 additions & 0 deletions
Loading

blogs/2025/nes-de-morgan.gif

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

blogs/2025/nes-fib-logic.gif

Lines changed: 3 additions & 0 deletions
Loading

blogs/2025/nes-gutter.gif

Lines changed: 3 additions & 0 deletions
Loading

blogs/2025/nes-point.gif

Lines changed: 3 additions & 0 deletions
Loading

blogs/2025/nes-typo.gif

Lines changed: 3 additions & 0 deletions
Loading

blogs/2025/next-edit-suggestions.md

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We're excited to announce the preview of **Copilot Next Edit Suggestions** (aka
1616

1717
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.
1818

19-
<!-- TODO: Video about NES from Rob -->
19+
<!-- TODO: Video about NES from Olivia -->
2020

2121
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.
2222

@@ -32,38 +32,46 @@ Like completions, all you need to do to start getting suggestions from NES is to
3232

3333
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).
3434

35-
An arrow in the gutter indicates if there is an edit suggestion available:
36-
![NES with right arrow](scan-right-highlight.png)
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+
![NES with arrow directions changing](nes-arrow-directions.gif)
3737

38-
If an edit suggestion is below the current editor view, the arrow will point down instead of right:
39-
![NES with down arrow](scan-down-highlight.png)
38+
<!-- ![NES with right arrow](scan-right-highlight.png) -->
39+
<!-- ![NES with down arrow](scan-down-highlight.png) -->
4040

4141
You can hover over the arrow to explore the edit suggestion menu, which includes keyboard shortcuts and settings configuration:
42-
![NES gutter menu expanded](gutter-menu-highlighted.png)
42+
![NES gutter menu gif](nes-gutter.gif)
43+
<!-- ![NES gutter menu expanded](gutter-menu-highlighted.png) -->
4344

4445
Suggestions may span a single symbol, an entire line, or multiple lines, depending on the scope of the potential change.
4546

4647
## 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.
4849

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-
![NES for updating Point to Point3D](point3d.png)
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+
![NES fixing an if statement mistake](nes-de-morgan.gif)
5152

52-
After accepting the change, NES next recommends adding `z` to the distance calculation:
53-
![NES for updating Point to Point3D](point3d-distance.png)
53+
The following are a few more examples where NES shines.
5454

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!).
5656

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-
![Add command in package.json](add-disposable.png)
57+
NES helps with small mistakes like typos - maybe you were coding quickly in the zone, and you wrote `conts` instead of `const`:
58+
![NES fixing a typo from "conts" to "const"](nes-typo.gif)
5959

60-
And then when you open `package.json`, NES may suggest registering that command as well:
61-
![Add command in package.json](call-disposable-full.png)
60+
NES can also help with more challenging mistakes in logic, like an evaluation that should've used `>` instead of `<`:
61+
![NES fixing a fibonacci logic mistake](nes-fib-logic.gif)
6262

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+
![NES gif for updating Point to Point3D](nes-point.gif)
65+
<!-- ![NES for updating Point to Point3D](point3d-distance.png) -->
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+
![Updating extension.ts and package.json](nes-extension-and-package.gif)
71+
<!-- ![Add command in package.json](add-disposable.png) -->
72+
<!-- ![Add command in package.json](call-disposable-full.png) -->
6473

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

6876
## Share your feedback
6977
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

Comments
 (0)