{"id":249433,"date":"2024-08-15T10:15:25","date_gmt":"2024-08-15T17:15:25","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=249433"},"modified":"2024-08-16T10:04:17","modified_gmt":"2024-08-16T17:04:17","slug":"copilot-content-exclusion-in-visual-studio","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/copilot-content-exclusion-in-visual-studio\/","title":{"rendered":"Copilot Content Exclusion Now Available in Visual Studio 2022 17.11"},"content":{"rendered":"<p>We are excited to announce that <a href=\"https:\/\/docs.github.com\/en\/copilot\/managing-copilot\/managing-github-copilot-in-your-organization\/setting-policies-for-copilot-in-your-organization\/excluding-content-from-github-copilot\">Copilot Content Exclusion<\/a> is now available in Visual Studio 2022 17.11. This feature allows your admins to configure Copilot to ignore certain files in a repository or organization, giving you enterprise control that ensures sensitive information is protected while seamlessly integrating trusted AI for efficient coding.<\/p>\n<p>This will now be available for Completions, Inline, Chat, for GitHub Copilot for Business and GitHub Copilot for Enterprise customers. Content Exclusion is not limited to repos hosted on GitHub but also available for repositories hosted on other platforms, such as Azure DevOps.<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/visualstudio.microsoft.com\/github-copilot\/?utm_source=vscom-homepage&amp;utm_medium=web-hero&amp;utm_id=landing-page&amp;utm_campaign=vscom-hp-hero-to-copilot-lp-build-2024\" target=\"_blank\">Get Visual Studio 2022 17.11<\/a><\/div><\/p>\n<h4><strong>How to Exclude Content<\/strong><\/h4>\n<p>Organization administrators or repository owners can choose which files or paths are excluded. This will prevent Copilot from accessing excluded files. Learn how to enable this feature <a href=\"https:\/\/docs.github.com\/en\/copilot\/managing-copilot\/managing-github-copilot-in-your-organization\/setting-policies-for-copilot-in-your-organization\/configuring-content-exclusions-for-github-copilot\">here.<\/a><\/p>\n<h4>How to Check if Your Content is Excluded<\/h4>\n<p>Copilot experiences where exclusions apply:<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\">Copilot experiences<\/td>\n<td style=\"width: 50%;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">Completions<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-completions-.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-249908\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-completions-.png\" alt=\"Image Content Exclusion blogs completions\" width=\"1740\" height=\"805\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-completions-.png 1740w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-completions--300x139.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-completions--1024x474.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-completions--768x355.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-completions--1536x711.png 1536w\" sizes=\"(max-width: 1740px) 100vw, 1740px\" \/><\/a><\/p>\n<p>Verify if Content Exclusion is enabled on your file by checking the left side for the \u201cExcluded\u201d label.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">Inline Chat<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-inline.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-249909\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-inline.png\" alt=\"Image Content Exclusion blogs inline\" width=\"1240\" height=\"687\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-inline.png 1240w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-inline-300x166.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-inline-1024x567.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-inline-768x425.png 768w\" sizes=\"(max-width: 1240px) 100vw, 1240px\" \/><\/a>Verify if Content Exclusion is enabled in Inline Chat below the prompt box.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">Chat Window<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-chat-.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-249910\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-chat-.png\" alt=\"Image Content Exclusion blogs chat\" width=\"849\" height=\"343\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-chat-.png 849w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-chat--300x121.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/07\/Content-Exclusion-blogs-chat--768x310.png 768w\" sizes=\"(max-width: 849px) 100vw, 849px\" \/><\/a><\/p>\n<p>Verify if Content Exclusion is enabled for the specific file you referenced by checking the tip at the top of your prompt box in the Chat Window.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Please note that certain GitHub Copilot features in Visual Studio may be fully disabled if any file is excluded. We hope this new feature enhances your experience with GitHub Copilot in Visual Studio<\/p>\n<p>We appreciate the time you\u2019ve spent reporting issues\/suggestions and hope you continue to give us feedback when using GitHub Copilot in Visual Studio on what you like and what we can improve. Your feedback is critical to help us make GitHub Copilot \u00a0the best tool it can be! You can share feedback with us via <a href=\"https:\/\/developercommunity.visualstudio.com\/home%22%20\/t%20%22_blank\">Developer Community<\/a>: report any bugs or issues via <a href=\"https:\/\/learn.microsoft.com\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?view=vs-2022\">report a problem<\/a> and <a href=\"https:\/\/developercommunity.microsoft.com\/VisualStudio\/suggest\">share your suggestions<\/a> for new features or improvements to existing ones.<\/p>\n<p>Stay connected with the Visual Studio team by following us on <a href=\"https:\/\/www.youtube.com\/@visualstudio\">YouTube<\/a>, <a href=\"https:\/\/twitter.com\/VisualStudio\">Twitter<\/a>, <a href=\"https:\/\/www.linkedin.com\/showcase\/microsoft-visual-studio\/\">LinkedIn<\/a>, <a href=\"https:\/\/www.twitch.tv\/visualstudio\">Twitch<\/a> and on <a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/?view=vs-2022\">Microsoft Learn<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are excited to announce that Copilot Content Exclusion is now available in Visual Studio 2022 17.11. This feature allows your admins to configure Copilot to ignore certain files in a repository or organization, giving you enterprise control that ensures sensitive information is protected while seamlessly integrating trusted AI for efficient coding. This will now [&hellip;]<\/p>\n","protected":false},"author":142353,"featured_media":249909,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[6887,6888,155],"tags":[6362,1055,6958,6883,4381,6924,6828,12],"class_list":["post-249433","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-artificial-intelligence","category-copilot","category-visual-studio","tag-administrator","tag-ai","tag-content-exclusion","tag-copilot","tag-github","tag-github-copilot","tag-security","tag-visual-studio","post_format-post-format-image"],"acf":[],"blog_post_summary":"<p>We are excited to announce that Copilot Content Exclusion is now available in Visual Studio 2022 17.11. This feature allows your admins to configure Copilot to ignore certain files in a repository or organization, giving you enterprise control that ensures sensitive information is protected while seamlessly integrating trusted AI for efficient coding. This will now [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/249433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/142353"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=249433"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/249433\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/249909"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=249433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=249433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=249433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}