56. VScode GitHub Copilot Edit AI|Multi file edit|Modify with AI|Inline chat| Add code| Update Code

Опубликовано: 26 Июнь 2026
на канале: The Python Gurukul
71
4

Use Copilot Edits to start an AI-powered code editing session and iterate quickly on code changes across multiple files by using natural language. Copilot Edits applies the edits directly in the editor, where you can review them in-place, with the full context of the surrounding code.

Copilot Edits can function in two modes:

Edit mode: select which files to edit, provide the relevant context and prompt, and Copilot will suggest code edits.
Agent mode (preview): let Copilot autonomously plan the tasks and relevant files that are needed to implement the request. Copilot will apply code edits and suggest terminal commands, and will continuously iterate to resolve any issues that arise.


Copilot can operate in two modes: edit mode and agent mode. These modes cater to different user preferences and workflows, allowing flexibility in how code is edited and iterated.

In edit mode, you provide the relevant context and files you want Copilot to work on. Copilot will suggest code edits based on your prompt and you can manually iterate on the code changes by providing follow-up prompts.

In agent mode, Copilot autonomously determines the relevant context and files, determines which tasks need to be performed, and offers both code changes and terminal commands to complete the request. It then iterates independently to achieve the desired outcome, fixing issues as they come up.

Copilot Edits agent mode uses a set of tools that allow it to perform specific tasks, such as editing files, running and monitoring terminal commands, or validating code. These tools can run in parallel to accomplish the requested task.

In both modes, you can review the generated edits and decide to keep or reject them.