From the course: Build with AI: Beyond Pair Programming with AI

Unlock this course with a free trial

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

Chatting with code

Chatting with code

- [Instructor] One of the many things I use AI coding tools for is having a conversation about the code to understand what is happening within a file. This is especially useful if you are inspecting code someone else has written or you're trying to maintain some larger thing where you need to pull in pieces from disparate parts and you're not fully aware of how they work together or what's actually going on. This can be done with ChatGPT or any of the other chat tools, and it can also be done from Copilot and the process is exactly the same. So in Copilot, I simply open the file that I want to discuss and then I say, explain what's going on here. And copilot will now read the code and then provide a really detailed explanation of absolutely everything that's going on inside this file. And looking at it, I may think that this might be a little too much and my question was not specific enough. So I can go in and just highlight a section of the code and say, what's this? And then it'll…

Contents