# GitHub Copilot のコンテンツの除外

Copilotが特定のファイルにアクセスできないようにすることができます。

## コンテンツの除外について Copilot

コンテンツの除外を使用して、特定のファイルを無視するように Copilot を構成できます。
Copilotからコンテンツを除外する場合:

* 影響を受けるファイルではインライン検索候補を使用できません。
* 影響を受けるファイル内のコンテンツは、他のファイルのインライン候補を通知しません。
* 影響を受けるファイル内のコンテンツは、 GitHub Copilot Chatの応答を通知しません。
* 影響を受けるファイルは、 Copilot コード レビューでは確認されません。

### コンテンツ除外を構成できる人

リポジトリ管理者、organization 所有者、Enterprise 所有者は、コンテンツ除外を構成できます。

* **リポジトリ管理者**は独自のリポジトリのコンテンツのみを除外できます。 これは、これらの特定のリポジトリ内で作業している、Enterprise 内のすべての Copilot ユーザーに影響します。
* **組織の所有者** は、組織を通じて Copilot シートを割り当てられたユーザーのコンテンツを除外できます。

### コンテンツ除外の利用可能性

Copilot BusinessプランとCopilot Enterprise プランでは、コンテンツの除外に対して次のレベルのサポートが提供されます。

\| ツール                                            |            インライン提案のサポート         |
Copilot Chat サポート |
\|-------------------------------------------------|:---------------------------------------------:|:----------------------------------------------------------------:|
\| Visual Studio        | <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-check" aria-label="Supported" role="img"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path></svg>  |           <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-check" aria-label="Supported" role="img"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path></svg>           |
\| Visual Studio Code    | <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-check" aria-label="Supported" role="img"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path></svg>  |           <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-check" aria-label="Supported" role="img"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path></svg>           |
\| JetBrains IDE                                  | <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-check" aria-label="Supported" role="img"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path></svg>  |           <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-check" aria-label="Supported" role="img"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path></svg>           |
\| Vim/Neovim                                      | <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-check" aria-label="Supported" role="img"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path></svg>  |                          適用なし                          |
\| Xcode                                           | <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-check" aria-label="Supported" role="img"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path></svg>  |           <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-x" aria-label="Not supported" role="img"><path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path></svg>           |
\| Eclipse                                         | <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-check" aria-label="Supported" role="img"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path></svg>  |           <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-x" aria-label="Not supported" role="img"><path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path></svg>           |
\| Azure Data Studio                               | <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-x" aria-label="Not supported" role="img"><path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path></svg>  |                          適用なし                          |
\| GitHub Web サイト |                適用なし                 |           <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-check" aria-label="Supported" role="img"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path></svg>           |
\| GitHub Mobile    |                適用なし                 |           <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-check" aria-label="Supported" role="img"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path></svg>           |

コンテンツの除外は、GitHub Web サイトのCopilot code reviewにも適用されます。

> \[!NOTE]
>
> * コンテンツの除外は、GitHub Web サイトおよびGitHub Mobileでパブリック プレビューされ、変更される可能性があります。
> * 現在、コンテンツの除外は、Visual Studio Codeおよびその他のエディターのCopilot Chatの編集モードとエージェント モードではサポートされていません。

### コンテンツ除外の制限

IDE から間接的に情報が提供されている場合、Copilot は除外されたファイルのセマンティック情報を使用する可能性があります。 このようなコンテンツの例として、コードで使用されるシンボルの種類に関する情報やホバーオーバー定義、ビルド構成情報などの一般的なプロジェクト プロパティがあります。

現在、コンテンツの除外は、シンボリック リンク (symlink) や、リモート ファイルシステムに配置されたリポジトリには適用されません。

### 送信されるデータ GitHub

コンテンツの除外を構成した後、クライアント (たとえば、VS CodeのCopilot拡張機能) は、サーバーがクライアントに正しいポリシーを返すことができるように、GitHub サーバーに現在のリポジトリ URL を送信します。 これらの URL はいずれにあるログにも記録されません。

## 参考資料

* [GitHub Copilotからコンテンツを除外する](/ja/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot)
* [GitHub Copilot のコンテンツの除外に対する変更の確認](/ja/copilot/how-tos/configure-content-exclusion/review-changes)