August 15th, 2024

Copilot Content Exclusion Now Available in Visual Studio 2022 17.11

Rhea Patel
Product Manager

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 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.

How to Exclude Content

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 here.

How to Check if Your Content is Excluded

Copilot experiences where exclusions apply:

Copilot experiences
Completions Image Content Exclusion blogs completions

Verify if Content Exclusion is enabled on your file by checking the left side for the “Excluded” label.

Inline Chat Image Content Exclusion blogs inlineVerify if Content Exclusion is enabled in Inline Chat below the prompt box.
Chat Window Image Content Exclusion blogs chat

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.

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

We appreciate the time you’ve 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  the best tool it can be! You can share feedback with us via Developer Community: report any bugs or issues via report a problem and share your suggestions for new features or improvements to existing ones.

Stay connected with the Visual Studio team by following us on YouTube, Twitter, LinkedIn, Twitch and on Microsoft Learn.

Author

Rhea Patel
Product Manager