You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intro: 'You can prevent {% data variables.product.prodname_copilot_short %} from accessing certain files.'
5
+
product: '{% data reusables.gated-features.copilot-business-and-enterprise %}'
6
+
versions:
7
+
feature: copilot
8
+
topics:
9
+
- Copilot
10
+
---
11
+
12
+
## About content exclusion for {% data variables.product.prodname_copilot_short %}
13
+
14
+
You can use content exclusion to configure {% data variables.product.prodname_copilot_short %} to ignore certain files. When you exclude content from {% data variables.product.prodname_copilot_short %}:
15
+
16
+
* Code completion will not be available in the affected files.
17
+
* The content in affected files will not inform code completion suggestions in other files.
18
+
* The content in affected files will not inform {% data variables.copilot.copilot_chat %}'s responses.
19
+
* Affected files will not be reviewed in a {% data variables.product.prodname_copilot_short %} code review.
20
+
21
+
### Who can configure content exclusion
22
+
23
+
Repository administrators, organization owners, and enterprise owners can configure content exclusion.
24
+
25
+
{% data reusables.copilot.content-exclusions-scope %}
26
+
27
+
### Availability of content exclusion
28
+
29
+
The {% data variables.copilot.copilot_business_short %} and {% data variables.copilot.copilot_enterprise_short %} plans provide the following level of support for content exclusion.
30
+
31
+
| Tool | Code completion support | {% data variables.copilot.copilot_chat_short %} support |
| Azure Data Studio | {% octicon "x" aria-label="Not supported" %} | Not applicable |
40
+
| The {% data variables.product.github %} website | Not applicable | {% octicon "check" aria-label="Supported" %} |
41
+
| {% data variables.product.prodname_mobile %} | Not applicable | {% octicon "check" aria-label="Supported" %} |
42
+
43
+
Content exclusions also apply to {% data variables.copilot.copilot_code-review_short %} on the {% data variables.product.github %} website.
44
+
45
+
> [!NOTE]
46
+
> * Content exclusion is in {% data variables.release-phases.public_preview %} on the {% data variables.product.github %} website and in {% data variables.product.prodname_mobile %} and is subject to change.
47
+
> * Content exclusion is currently not supported in Edit and Agent modes of {% data variables.copilot.copilot_chat_short %} in {% data variables.product.prodname_vscode %}.
48
+
49
+
### Limitations of content exclusion
50
+
51
+
{% data reusables.copilot.content-exclusion-limitations %}
52
+
53
+
Currently, content exclusions do not apply to symbolic links (symlinks).
54
+
55
+
### Data sent to {% data variables.product.prodname_dotcom %}
56
+
57
+
After you configure content exclusion, the client (for example, the {% data variables.product.prodname_copilot_short %} extension for {% data variables.product.prodname_vscode_shortname %}) sends the current repository URL to the {% data variables.product.prodname_dotcom %} server so that the server can return the correct policy to the client. These URLs are not logged anywhere.
Copy file name to clipboardExpand all lines: content/copilot/how-tos/content-exclusion/excluding-content-from-github-copilot.md
+2-48Lines changed: 2 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Excluding content from GitHub Copilot
3
3
shortTitle: Exclude content from Copilot
4
-
intro: 'You can prevent {% data variables.product.prodname_copilot_short %} from accessing certain content.'
4
+
intro: 'Learn how to prevent {% data variables.product.prodname_copilot_short %} from accessing certain content.'
5
5
permissions: 'Repository administrators, organization owners, and enterprise owners can manage content exclusion settings. People with the "Maintain" role for a repository can view, but not edit, content exclusion settings for that repository.'
6
6
product: '{% data reusables.gated-features.copilot-business-and-enterprise %}'
7
7
layout: inline
@@ -23,53 +23,6 @@ topics:
23
23
- Copilot
24
24
---
25
25
26
-
## About content exclusion for {% data variables.product.prodname_copilot_short %}
27
-
28
-
You can use content exclusion to configure {% data variables.product.prodname_copilot_short %} to ignore certain files. When you exclude content from {% data variables.product.prodname_copilot_short %}:
29
-
30
-
* Code completion will not be available in the affected files.
31
-
* The content in affected files will not inform code completion suggestions in other files.
32
-
* The content in affected files will not inform {% data variables.copilot.copilot_chat %}'s responses.
33
-
* Affected files will not be reviewed in a {% data variables.product.prodname_copilot_short %} code review.
34
-
35
-
### Who can configure content exclusion
36
-
37
-
Repository administrators, organization owners, and enterprise owners can configure content exclusion.
38
-
39
-
{% data reusables.copilot.content-exclusions-scope %}
40
-
41
-
### Availability of content exclusion
42
-
43
-
The {% data variables.copilot.copilot_business_short %} and {% data variables.copilot.copilot_enterprise_short %} plans provide the following level of support for content exclusion.
44
-
45
-
| Tool | Code completion support | {% data variables.copilot.copilot_chat_short %} support |
| Azure Data Studio | {% octicon "x" aria-label="Not supported" %} | Not applicable |
54
-
| The {% data variables.product.github %} website | Not applicable | {% octicon "check" aria-label="Supported" %} |
55
-
| {% data variables.product.prodname_mobile %} | Not applicable | {% octicon "check" aria-label="Supported" %} |
56
-
57
-
Content exclusions also apply to {% data variables.copilot.copilot_code-review_short %} on the {% data variables.product.github %} website.
58
-
59
-
> [!NOTE]
60
-
> * Content exclusion is in {% data variables.release-phases.public_preview %} on the {% data variables.product.github %} website and in {% data variables.product.prodname_mobile %} and is subject to change.
61
-
> * Content exclusion is currently not supported in Edit and Agent modes of {% data variables.copilot.copilot_chat_short %} in {% data variables.product.prodname_vscode %}.
62
-
63
-
### Limitations of content exclusion
64
-
65
-
{% data reusables.copilot.content-exclusion-limitations %}
66
-
67
-
Currently, content exclusions do not apply to symbolic links (symlinks).
68
-
69
-
### Data sent to {% data variables.product.prodname_dotcom %}
70
-
71
-
After you configure content exclusion, the client (for example, the {% data variables.product.prodname_copilot_short %} extension for {% data variables.product.prodname_vscode_shortname %}) sends the current repository URL to the {% data variables.product.prodname_dotcom %} server so that the server can return the correct policy to the client. These URLs are not logged anywhere.
72
-
73
26
## Configuring content exclusion for your repository
74
27
75
28
You can use your repository settings to specify content in your repository that {% data variables.product.prodname_copilot %} should ignore.
@@ -235,5 +188,6 @@ You can verify that content exclusions you have configured are working as expect
* [Configuring content exclusion for {% data variables.product.prodname_vs %}](https://learn.microsoft.com/en-us/visualstudio/ide/visual-studio-github-copilot-admin?view=vs-2022#configure-content-exclusion) in the Microsoft Learn documentation
0 commit comments