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
With GitHub Copilot Free you get **2000 code completions/month**. That's about 80 per working day - which is a lot. You also get **50 chat requests/month**, as well as **access to both GPT-4o and Claude 3.5 Sonnet models**.
Copy file name to clipboardExpand all lines: blogs/2025/02/12/next-edit-suggestions.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ GitHub Copilot code completions - which are also called _ghost text_ - are reall
25
25
26
26
We call this _Next Edit Suggestions_, or _NES_ for short. And yes - we also feel the game console nostalgia when we see that acronym.
27
27
28
-
<videosrc="nes-video.mp4"title="Copilot NES video"controlsposter="/assets/blogs/2025/02/12/nes-video-cover.png"></video>
28
+
<videosrc="nes-video.mp4"title="Copilot NES video"controlsposter="nes-video-cover.png"></video>
29
29
30
30
### Getting started with NES
31
31
@@ -60,29 +60,29 @@ Copilot NES is your AI companion as you make changes that can cascade throughout
60
60
61
61
NES helps with small mistakes like typos - maybe you were coding quickly and in the zone, and you wrote `conts` instead of `const`:
62
62
63
-
<videosrc="nes-typo.mp4"title="NES fixing a typo"controlsposter="/assets/blogs/2025/02/12/nes-typo-cover.png"></video>
63
+
<videosrc="nes-typo.mp4"title="NES fixing a typo"controlsposter="nes-typo-cover.png"></video>
64
64
65
65
NES can also help with more challenging mistakes in logic, like an inverted ternary expression:
66
66
67
-
<videosrc="nes-fib-logic.mp4"title="NES fixing a fibonacci logic mistake"controlsposter="/assets/blogs/2025/02/12/nes-fib-logic-cover.png"></video>
67
+
<videosrc="nes-fib-logic.mp4"title="NES fixing a fibonacci logic mistake"controlsposter="nes-fib-logic-cover.png"></video>
68
68
69
69
Our development team has been self-hosting on NES, and one of our engineers remembered one of his first "aha!" moments with NES as we were putting this blog together. 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:
70
70
71
-
<videosrc="nes-de-morgan.mp4"title="NES fixing an if statement mistake"controlsposter="/assets/blogs/2025/02/12/nes-de-morgan-cover.png"></video>
71
+
<videosrc="nes-de-morgan.mp4"title="NES fixing an if statement mistake"controlsposter="nes-de-morgan-cover.png"></video>
72
72
73
73
**Changing intent:** Copilot NES suggests changes that match a change in intent. For example, changing a class from `Point` to `Point3D` leads to a suggestion to add a `z` variable to the class definition and to the distance calculation:
74
74
75
-
<videosrc="nes-point.mp4"title="NES updating Point to Point3D"controlsposter="/assets/blogs/2025/02/12/nes-point-cover.png"></video>
75
+
<videosrc="nes-point.mp4"title="NES updating Point to Point3D"controlsposter="nes-point-cover.png"></video>
76
76
77
77
**Using newly added variables or logic:** Copilot NES helps you use new code you just added. This could be a small change, like calling a new method parameter in the actual method.
78
78
79
79
It could also be more complex: if you added a new command to your VS Code extension's `extension.ts`, NES will first suggest cleaning up the command in `extension.ts`. Then when you open `package.json`, NES suggests registering that command as well:
80
80
81
-
<videosrc="nes-extension-and-package.mp4"title="NES updating extension project with new command"controlsposter="/assets/blogs/2025/02/12/nes-extension-and-package-cover.png"></video>
81
+
<videosrc="nes-extension-and-package.mp4"title="NES updating extension project with new command"controlsposter="nes-extension-and-package-cover.png"></video>
82
82
83
83
**Refactoring:** If you use a new name or naming pattern, Copilot NES suggests updating subsequent code similarly:
84
84
85
-
<videosrc="nes-gutter.mp4"title="NES suggesting change after updating function name"controlsposter="/assets/blogs/2025/02/12/nes-gutter-cover.png"></video>
85
+
<videosrc="nes-gutter.mp4"title="NES suggesting change after updating function name"controlsposter="nes-gutter-cover.png"></video>
86
86
87
87
Read our [full NES docs](https://aka.ms/gh-copilot-nes-docs) for more information and scenarios, as we expand the NES experience.
88
88
@@ -102,7 +102,7 @@ As of last week's [VS Code Insiders](https://code.visualstudio.com/insiders/) re
102
102
103
103
Agent mode in Copilot Edits is capable of iterating on its own code - recognizing errors and fixing them automatically, executing any terminal commands required to complete the requested task, as well as resolving runtime errors with self-healing capabilities. Instead of performing just the task that the user requests, GitHub Copilot can now infer all of the other tasks that were not specified and also need to be completed in order for the primary request to work.
We see tremendous power in agent mode for GitHub Copilot. It's getting better every day, but we wanted to get it into your hands as quickly as we could. Watch this space for major changes and improvements over the next few weeks as we refine the experience, and [share your feedback](https://github.com/microsoft/vscode-copilot-release) as you try it out (today in VS Code Insiders, and soon in VS Code Stable).
Copy file name to clipboardExpand all lines: docs/copilot/ai-powered-suggestions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ The following example shows how to instruct Copilot to create a class in TypeScr
67
67
68
68
Inline suggestions are great at autocompleting a section of code. But since most coding activity is editing existing code, it's a natural evolution of Copilot code completions to also help with edits, both at the cursor and further away. Edits are often not made in isolation - there's a logical flow of what edits need to be made in different scenarios. Copilot Next Edit Suggestions (Copilot NES) is this evolution.
69
69
70
-
<videosrc="./images/inline-suggestions/nes-video.mp4"title="Copilot NES video"controlsposter="/assets/docs/copilot/inline-suggestions/point3d.png"></video>
70
+
<videosrc="./images/inline-suggestions/nes-video.mp4"title="Copilot NES video"controlsposter="./images/inline-suggestions/point3d.png"></video>
71
71
72
72
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. Copilot 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 Copilot's suggestions. Suggestions may span a single symbol, an entire line, or multiple lines, depending on the scope of the potential change.
0 commit comments