{"meta":{"title":"GitHub Copilot のコンテンツの除外","intro":"Copilotが特定のファイルにアクセスできないようにすることができます。","product":"GitHub Copilot","breadcrumbs":[{"href":"/ja/copilot","title":"GitHub Copilot"},{"href":"/ja/copilot/concepts","title":"概念"},{"href":"/ja/copilot/concepts/context","title":"Context"},{"href":"/ja/copilot/concepts/context/content-exclusion","title":"内容の除外"}],"documentType":"article"},"body":"# GitHub Copilot のコンテンツの除外\n\nCopilotが特定のファイルにアクセスできないようにすることができます。\n\n## コンテンツの除外について Copilot\n\nコンテンツの除外を使用して、特定のファイルを無視するように Copilot を構成できます。\nCopilotからコンテンツを除外する場合:\n\n* 影響を受けるファイルではインライン検索候補を使用できません。\n* 影響を受けるファイル内のコンテンツは、他のファイルのインライン候補を通知しません。\n* 影響を受けるファイル内のコンテンツは、 GitHub Copilot Chatの応答を通知しません。\n* 影響を受けるファイルは、 Copilot コード レビューでは確認されません。\n\n### コンテンツ除外を構成できる人\n\nリポジトリ管理者、organization 所有者、Enterprise 所有者は、コンテンツ除外を構成できます。\n\n* **リポジトリ管理者**は独自のリポジトリのコンテンツのみを除外できます。 これは、これらの特定のリポジトリ内で作業している、Enterprise 内のすべての Copilot ユーザーに影響します。\n* **組織の所有者** は、組織を通じて Copilot シートを割り当てられたユーザーのコンテンツを除外できます。\n\n### コンテンツ除外の利用可能性\n\nCopilot BusinessプランとCopilot Enterprise プランでは、コンテンツの除外に対して次のレベルのサポートが提供されます。\n\n\\| ツール                                            |            インライン提案のサポート         |\nCopilot Chat サポート |\n\\|-------------------------------------------------|:---------------------------------------------:|:----------------------------------------------------------------:|\n\\| 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>           |\n\\| 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>           |\n\\| 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>           |\n\\| 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>  |                          適用なし                          |\n\\| 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>           |\n\\| 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>           |\n\\| 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>  |                          適用なし                          |\n\\| 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>           |\n\\| 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>           |\n\nコンテンツの除外は、GitHub Web サイトのCopilot code reviewにも適用されます。\n\n> \\[!NOTE]\n>\n> * コンテンツの除外は、GitHub Web サイトおよびGitHub Mobileでパブリック プレビューされ、変更される可能性があります。\n> * 現在、コンテンツの除外は、Visual Studio Codeおよびその他のエディターのCopilot Chatの編集モードとエージェント モードではサポートされていません。\n\n### コンテンツ除外の制限\n\nIDE から間接的に情報が提供されている場合、Copilot は除外されたファイルのセマンティック情報を使用する可能性があります。 このようなコンテンツの例として、コードで使用されるシンボルの種類に関する情報やホバーオーバー定義、ビルド構成情報などの一般的なプロジェクト プロパティがあります。\n\n現在、コンテンツの除外は、シンボリック リンク (symlink) や、リモート ファイルシステムに配置されたリポジトリには適用されません。\n\n### 送信されるデータ GitHub\n\nコンテンツの除外を構成した後、クライアント (たとえば、VS CodeのCopilot拡張機能) は、サーバーがクライアントに正しいポリシーを返すことができるように、GitHub サーバーに現在のリポジトリ URL を送信します。 これらの URL はいずれにあるログにも記録されません。\n\n## 参考資料\n\n* [GitHub Copilotからコンテンツを除外する](/ja/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot)\n* [GitHub Copilot のコンテンツの除外に対する変更の確認](/ja/copilot/how-tos/configure-content-exclusion/review-changes)"}