From the course: AI Coding Agents with GitHub Copilot and Cursor

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

How to accept all or individual agent edits

How to accept all or individual agent edits

- [Instructor] In the previous video, the Cursor agent made a bunch of changes to two files in my project. And now I, the human in the loop, get to decide what happens next. I can either go into the chat and accept all. This means I accept every single change that happened throughout the project without reviewing it. I can go into the editor area and accept the changes for each file. So that means I'll say all the changes for Cipher Game and then all the changes for Cipher.ts. Or if I want to review exactly what happened here, I can go into the file itself, and just like working with Git, I can now see the edits in real time. So here we see the diffs between the before and after states. I'll close out this. You'll see it in more detail. Here we have a red line, which is what was there before, and then a green line with a new edit. And I can go in and accept just this edit or reject just this edit. And this is really important because when you're working with these agents, there's…

Contents