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.

Use inline chat

Use inline chat

If you are already typing in the terminal and don't want to open the side panel you can press ctrl I or command I on the Mac to open up this floating chat box. When you trigger the inline chat directly within the terminal panel, VS Code already knows the context is the terminal. It automatically routes your request to the terminal participant. So I can type in my request here, undo my last git command. And just like in the bigger chat window, I'll get the results here. It's telling me it's git reset. Gives me some information about what this will do. And then I have some button choices here. I can run it or I can press control enter. I can use insert it or press alt enter or I can close. Let's do that again. This time I'll bring it up and I want to list some of the larger files in my project. Ctrl-I. Now remember I can press Alt plus the Enter key to have it insert the text into my terminal and then I can run it there or I'll escape out of that bring this up again and press the up…

Contents