Menu

How to Enable Copilot Agent Mode in Visual Studio 2022

How to Enable Copilot Agent Mode in Visual Studio 2022

I've been using Github Copilot on VS Code for several months now and overall I can say that I am a fan.

The built-in chat is great, but the real standout feature is the ability to directly 'Edit' the page, or multiple pages with natural language. It's similar to how you would pair program with another developer nearby.

And now you can do the same in Visual Studio 2022 with "Agent Mode".

What is Agent Mode?

Agent mode allows developers to edit their codebase, invoke tools and define specific tasks using natural language.

Unlike a standard 'edit' though, Agent mode will run continuously until your defined task is complete.

1. Install the latest version

Agent Mode is currently available in public preview in Visual Studio 17.14. So before you do anything else, check your latest version and update if needed.

Download Visual Studio 17.14

2. Enable feature

By default, you won't see Agent Mode in your IDE. In order to enable it:

  1. Type CTRL+q in order to open the Visual Studio "Feature Search".

  2. Enter "copilot-chat.agent" into the search box

  3. Click on the following item in the results:

This will bring up the "Options" menu highlighting the "Copilot" configuration settings:

Ensure that the "Enable Agent mode in the chat pane" checkbox is selected and click "OK".

You will now see the "Agent" option in the "GitHub Copilot Chat" panel on the right side.

Walter Guevara is a Computer Scientist, software engineer, startup founder and previous mentor for a coding bootcamp. He has been creating software for the past 20 years.
AD: "Heavy scripts slowing down your site? I use Fathom Analytics because it’s lightweight, fast, and doesn’t invade my users privacy." - Get $10 OFF your first invoice.

Community Comments

No comments posted yet

Code Your Own Classic Snake Game – The Right Way

Master the fundamentals of game development and JavaScript with a step-by-step guide that skips the fluff and gets straight to the real code.

Ad Unit

Current Poll

Help us and the community figure out what the latest trends in coding are.

Total Votes:
Q:
Submit

Add a comment