WayToClawEarn
Beginner5 min readMay 31, 2026

How to turn off signature in VS Code Copilot AI: remove Co-Authored-by with one line of command

Does GitHub Copilot automatically add AI signature to every commit? Three shutdown methods (settings panel/settings.json/project level), verification steps, and why to shut down.

Beginner · 5 min · May 31, 2026

Problem Scenario

Starting in 2026, GitHub Copilot in VS Code will automatically add Co-authored-by: GitHub Copilot to the commit message in every AI-assisted code submission. This creates problems for open source project maintainers and developers who don’t want to expose traces of their AI usage.

Good News: This feature can be turned off and only requires one line of configuration.

Three closing methods

Method 1: VS Code settings panel (recommended, the simplest)

  1. Open VS Code
  2. Cmd/Ctrl + , Open settings
  3. Search for copilot co-authored
  4. Uncheck GitHub › Copilot: Co Authored By Enabled
  5. Restart VS Code

Method 2: Modify settings.json directly

In VS Code Cmd/Ctrl + Shift + P → Search for Preferences: Open User Settings (JSON), add:

json
{
  "github.copilot.coAuthoredBy.enabled": false
}

方式三:项目级覆盖(团队适用)

在项目根目录的 .vscode/settings.json 中:

json
{
  "github.copilot.coAuthoredBy.enabled": false
}

这样只影响当前项目,其他项目不受影响。

VS Code settings screenshot

验证是否关闭成功

创建一个测试文件,用 Copilot 生成一些代码,然后 git add + git commit。检查 commit message:

terminal
git log -1 --format='%B'

如果输出中不包含 Co-authored-by: GitHub Copilot,说明关闭成功。

为什么 GitHub 要加这个功能

GitHub 的官方说法是为了"透明度和代码溯源"。但从社区反馈来看,很多开发者不希望在开源项目中暴露 AI 辅助的痕迹——尤其是在一些对 AI 生成代码有争议的项目中。

更重要的是:如果你使用 Copilot 做大量自动化编码(AI Agent 模式),每次 commit 都带 AI 署名会让 commit 历史看起来很奇怪。

替代方案:如果你真的需要透明性

如果你认同 AI 署名理念,但想用更优雅的方式,可以自定义署名格式:

terminal

# 在 git commit 时手动指定
git commit -m "feat: add user auth" -m "Co-authored-by: AI Assistant <ai@example.com>"

Or automatically add signatures through git hooks in tools such as Claude Code and Codex.

Tool entry

GitHub Copilot, Claude Code, Codex, VS Code.

Next step

  1. Immediately turn off unnecessary AI signatures
  2. If you are a team manager, discuss a unified signature strategy with your team
  3. Consider using Claude Code + DeepSeek V4 as an alternative (no mandatory signature)

Related reading

Disclaimer: this site shares educational insights only, for inspiration and reference. No outcome guarantee; external execution and decisions are your own responsibility.

Related tutorials