Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically approve/continue GitHub Copilot terminal commands in VS Code?

When using GitHub Copilot in VS Code through the Chat tab, it frequently suggests running terminal commands and asks for iteration permissions. Each time it wants to execute a command or continue working on a problem, there are confirmation dialogs requiring manual approval.

Example:

  1. Terminal command execution: Dialog shown when Copilot suggests running node server.js:

enter image description here

  1. Iteration continuation: Dialog shown after Copilot works on a problem for a while:

enter image description here

Expected behavior

GitHub Copilot should:

  1. Automatically execute suggested terminal commands without requiring manual approval
  2. Automatically continue iterations when working on complex problems


Safety note: I recognize these prompts are intentional security safeguards. I’m specifically asking whether there’s a supported way to disable or auto-approve them, being aware of the risks.

like image 392
Gustavo Maximo Avatar asked Apr 13 '26 01:04

Gustavo Maximo


1 Answers

VS Code version 1.104 introduced "Global auto approve":


To enable it:

Ctrl+Shift+P -or- +shift+P

>Preferences: Open User Settings (JSON)

Add the following key to your JSON file:

"chat.tools.global.autoApprove": true

Alternatively:

Ctrl+Shift+P -or- +shift+P

>Preferences: Open User Settings

Search for YOLO and enable it:

Image showing the YOLO mode in the user configs

like image 172
Gustavo Maximo Avatar answered Apr 16 '26 15:04

Gustavo Maximo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!