Persist trusted directories in the user config.

Section: Config files and trusted-folder layout

Store permanently trusted folders

json
json
{
  "trusted_folders": [
    "/Users/you/src/project-a",
    "/Users/you/src/project-b"
  ]
}
Explanation

Trusted folders control where Copilot can read, modify, and execute files without re-prompting each time.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Config files and trusted-folder layout
Open the global user config path
Use the default config location.
OpenIn sheetbashsame section
Repository-shared settings path
Commit repo-wide Copilot settings.
OpenIn sheetjsonsame section
Personal local overrides path
Create non-committed per-repo overrides.
OpenIn sheetjsonsame section
Disable the animated banner
Tune a simple UI preference in config.
OpenIn sheetjsonsame section
Disable auto update in config
Persist no-auto-update behavior.
OpenIn sheetjsonsame section
Override the Copilot home directory
Change where config and state files are stored.
OpenIn sheetbash2 tag match