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.

Completions, chat, and agent modes

Completions, chat, and agent modes

There are two main ways to work with Copilot. Code completion is predictive. Copilot looks at your context and inserts code as you type, almost like an advanced autocomplete. Chat, on the other hand, is interactive. It's a two-way conversation with the AI model where you can ask questions, request edits, and Copilot responds with explanations, suggestions, and samples. Completion is about speed and automation, while chat is about dialogue and guidance. Copilot code completion is available in the most commonly used programming language editors as well as in markup editing windows. That means whether you're writing code or editing HTML or JSON or writing markdown, Copilot suggestions appear inline as you type. Copilot chat is a conversational interface designed to assist with coding-related questions, provide explanations, and tasks. It appears in two places within Visual Studio Code. First, in a dedicated chat panel similar to other chat applications, this panel includes a prompt input…

Contents