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

Unlock this course with a free trial

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

Inline generation

Inline generation

- [Instructor] The most natural and unobtrusive way of using AI coding tools is an inline code generation in your IDE. I'm using VS code in GitHub code spaces and I have GitHub copilot activated and that means I now have access to copilot inside every single file. And I can access that in multiple different ways. First, I can hit command or control-I, and this brings up a chat window where I can chat with the AI directly. Now this chat window is contextual to the current file I'm in. So when I'm chatting with the system and look at the current file and I can say things like, add subheading and then hit return, and the AI will now look at the code, propose a subheading, I can then look at the code to see is this what I want? If it is, I click accept. If it's not, I can click discard. And if I want a different generated example, I can click the regenerate button, it'll now do the same thing again and give me a different proposal and if that's the one I want, I click accept. Now this is…

Contents