From the course: AI-Powered Development: GitHub Copilot in Visual Studio Code

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

The three Copilot diff tools

The three Copilot diff tools

By default, Copilot shows the proposed changes inline in the code editor. We've seen this in the last video. But there are two additional ways to review edits. They're called ToggleDiffEditor and ViewAllEdits. Both of them open in separate tabs in Visual Studio Code. So currently I just have the index.html file open in a tab. When I choose some of these other options, you'll see additional tabs appear here. Now you notice when I hover over these lines there's this floating bar that says keep undo and then there's a button over here that's the button for toggle diff editor so I can click here that'll bring up another tab telling me that it's the index.html changes from chat and you see that I get a side-by-side diff view now. I can also open this view by going over to the chat panel and going to the bottom and clicking on this button. The third option is available in the button up here. This is the one that's called View All Edits. So let's look at that one. And it says Suggested Edits…

Contents