Skip to content

Commit 417cfc2

Browse files
author
bamurtaugh
committed
Blog updates
1 parent e588d81 commit 417cfc2

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

blogs/2025/next-edit-suggestions.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ Author: Brigit Murtaugh, Burke Holland
1010
# Copilot Next Edit Suggestions (preview)
1111
Feburary 5, 2025 by [Brigit Murtaugh](https://github.com/bamurtaugh), [Burke Holland](https://github.com/burkeholland)
1212

13-
GitHub Copilot code completions are great at autocomplete - they can predict and 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.
13+
GitHub Copilot code completions are great at autocomplete - they can predict and 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.
1414

15-
We're excited to announce the preview of **Copilot Next Edit Suggestions** (aka "Copilot NES"), which is this evolution of Copilot completions.
15+
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.
1616

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.
17+
We're excited to announce the preview of **Copilot Next Edit Suggestions** (aka "Copilot NES"), which is this evolution of Copilot completions.
1818

1919
<!-- TODO: Video about NES from Olivia -->
2020

21+
Based on the edits you're making, Copilot 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.
22+
2123
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.
2224

2325
## Getting your first suggestions
24-
You can enable NES via the VS Code setting `setting(github.copilot.nextEdits.enabled)`.
26+
You can enable Copilot NES via the VS Code setting `setting(github.copilot.nextEdits.enabled)`.
2527

2628
> [!NOTE]
2729
> If you are a Copilot Business or Enterprise user, an administrator of your organization must opt in to the use of previews of Copilot features, in addition to you setting `setting(github.copilot.nextEdits.enabled)` in your editor.
@@ -32,7 +34,7 @@ Like completions, all you need to do to start getting suggestions from NES is to
3234

3335
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).
3436

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.
37+
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:
3638
![NES with arrow directions changing](nes-arrow-directions.gif)
3739

3840
<!-- ![NES with right arrow](scan-right-highlight.png) -->
@@ -47,17 +49,17 @@ Suggestions may span a single symbol, an entire line, or multiple lines, dependi
4749
## Example scenarios
4850
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.
4951

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 `&&`:
52+
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 `&&` to make the code valid:
5153
![NES fixing an if statement mistake](nes-de-morgan.gif)
5254

53-
The following are a few more examples where NES shines.
55+
The following are just a few more examples where NES shines.
5456

5557
**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!).
5658

5759
NES helps with small mistakes like typos - maybe you were coding quickly in the zone, and you wrote `conts` instead of `const`:
5860
![NES fixing a typo from "conts" to "const"](nes-typo.gif)
5961

60-
NES can also help with more challenging mistakes in logic, like an evaluation that should've used `>` instead of `<`:
62+
NES can also help with more challenging mistakes in logic, like a return statement that should've used `<=` instead of `>`:
6163
![NES fixing a fibonacci logic mistake](nes-fib-logic.gif)
6264

6365
**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:
@@ -71,14 +73,14 @@ It could also be more complex: if you added a new command to your VS Code extens
7173
<!-- ![Add command in package.json](add-disposable.png) -->
7274
<!-- ![Add command in package.json](call-disposable-full.png) -->
7375

74-
**Refactoring:** If you use a new name or naming pattern, Copilot suggests to rename subsequent variables similarly.
76+
**Refactoring:** If you use a new name or naming pattern, Copilot NES suggests to rename subsequent variables similarly.
7577

7678
## Share your feedback
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.
79+
Copilot 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.
7880

7981
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.
8082

81-
You can read our [full NES docs](aka.ms/gh-copilot-nes-docs) for more information and scenarios as we expand the NES experience.
83+
You can read our [full NES docs](https://aka.ms/gh-copilot-nes-docs) for more information and scenarios as we expand the NES experience.
8284

8385
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!
8486

0 commit comments

Comments
 (0)