Skip to content

Commit dfda7c2

Browse files
Merge pull request #11073 from MicrosoftDocs/main638948703264056344sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 0e1f8fe + 034b109 commit dfda7c2

5 files changed

+34
-4
lines changed

docs/ide/copilot-chat-context.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Customize chat responses'
33
description: Use custom instructions and prompt files to customize responses and use slash commands to set quick context for common tasks.
4-
ms.date: 7/31/2025
4+
ms.date: 9/29/2025
55
ms.update-cycle: 180-days
66
ms.topic: how-to
77
author: anandmeg
@@ -47,10 +47,32 @@ The custom instructions feature enables you to automatically add pre-specified c
4747

4848
To configure custom instructions:
4949
1. [Create/add](https://docs.github.com/en/enterprise-cloud@latest/copilot/customizing-copilot/adding-custom-instructions-for-github-copilot) a custom instructions file `.github/copilot-instructions.md` in the root of your repository.
50-
1. Enable the feature in Visual Studio via **Tools** > **Options** > **GitHub** > **Copilot** > select **(Preview) Enable custom instructions to be loaded from .github/copilot-instructions.md files and added to requests.**.
50+
1. Enable the feature in Visual Studio via **Tools** > **Options** > **GitHub** > **Copilot** > **Copilot Chat** > **Enable custom instructions to be loaded from .github/copilot-instructions.md files and added to requests**.
5151

5252
Custom instructions are not visible in the Chat view or inline chat. However, when used by Copilot, the`.github/copilot-instructions.md` file is listed in the References list of a response.
5353

54+
### Example
55+
56+
Here's an example C# custom instruction:
57+
58+
```markdown
59+
# Custom Instructions
60+
61+
## C# Instructions
62+
Applies to: `**/*.cs`
63+
64+
- Write clear and concise comments for each function.
65+
- Use PascalCase for component names, method names, and public members.
66+
- Use camelCase for private fields and local variables.
67+
- Add a newline before the opening curly brace of any code block
68+
(such as after `if`, `for`, `while`, `foreach`, `using`, `try`, etc.).
69+
- Ensure that the final `return` statement of a method is on its own line.
70+
```
71+
72+
Copy these instructions into your `.github/copilot-instructions.md` file to use and automatically apply to Copilot behavior.
73+
74+
For more examples of custom instructions, see the list of [instruction samples on GitHub](https://github.com/github/awesome-copilot/blob/main/README.instructions.md).
75+
5476
## Use prompt files
5577

5678
You can now create reusable prompt files in your repository to run or share your frequently used prompts.

docs/ide/visual-studio-github-copilot-chat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,5 @@ To learn more, consider exploring the following resources:
146146

147147
- [GitHub Copilot: Getting started](https://docs.github.com/copilot/getting-started-with-github-copilot?tool=visualstudio)
148148
- [GitHub Copilot: Your AI pair programmer](https://github.com/features/copilot)
149-
- [GitHub Copilot Trust Center](https://resources.github.com/copilot-trust-center/)
149+
- [GitHub Copilot Trust Center](https://copilot.github.trust.page)
150150
- [Support for GitHub Copilot Chat](https://support.github.com)

docs/ide/visual-studio-github-copilot-extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@ To learn more about the GitHub Copilot extension for Visual Studio, consider exp
149149

150150
- [GitHub Copilot quickstart](https://docs.github.com/copilot/getting-started-with-github-copilot?tool=visualstudio)
151151
- [GitHub Copilot feature page](https://github.com/features/copilot)
152-
- [GitHub Trust Center](https://resources.github.com/copilot-trust-center/)
152+
- [GitHub Copilot Trust Center](https://copilot.github.trust.page)

docs/ide/visual-studio-github-copilot-get-started.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,9 @@ Customize Copilot for your project and your development workflow.
6161
To review Copilot features at any time, select **GitHub Copilot Walkthrough** from the **GitHub Copilot** badge in the upper right corner of Visual Studio.
6262

6363
Try building a complete app with the [Hands-on lab: GitHub Copilot in Visual Studio 2022](https://github.com/dotnet-presentations/build-2025-lab300).
64+
65+
## Related links
66+
67+
- [GitHub Copilot Trust Center: Learn about security, privacy, compliance, and transparency](https://copilot.github.trust.page)
68+
- [Completions](visual-studio-github-copilot-extension.md)
69+
- [Chat](visual-studio-github-copilot-chat.md)

docs/ide/visual-studio-github-copilot-install-and-states.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ You can remove the GitHub Copilot component from your Visual Studio instance by
112112

113113
Support for GitHub Copilot Chat will be provided by GitHub and can be reached at https://support.github.com.
114114

115+
To learn more about Copilot’s security, privacy, compliance, and transparency, see the [GitHub Copilot Trust Center FAQ](https://copilot.github.trust.page/faq).
116+
115117
## Next steps
116118

117119
To learn more, consider exploring the following resources:

0 commit comments

Comments
 (0)