Skip to content

Conversation

@gewarren
Copy link
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • My contribution adds a new instruction, prompt, or chat mode file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, or chat mode with GitHub Copilot.
  • I have run node update-readme.js and verified that README.md is up to date.

Description

Expanded documentation prompts based on https://learn.microsoft.com/en-us/help/contribute-ref/how-to-write-net-docs.


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New chat mode file.
  • Other (please specify): Updated prompt file.

By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copilot AI review requested due to automatic review settings August 20, 2025 21:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the C# documentation prompt file to expand and improve the guidelines for writing XML documentation comments, aligning with Microsoft's documentation standards. The changes provide more comprehensive guidance on using various XML documentation tags effectively.

Key Changes

  • Added guidance for referencing parameters and type parameters in documentation text
  • Clarified the distinction between <see cref> for inline references and <seealso> for standalone references
  • Enhanced code block documentation with language attribute requirements

- Use `<example>` for usage examples on how to use the member.
- Use `<exception>` to document exceptions thrown by methods.
- Use `<see>` and `<seealso>` for references to other types or members.
- Use `<see langword>` for language-specific keywords like `null`, `true`, `false`, `int`, `bool`, etc.
Copy link

Copilot AI Aug 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line duplicates the guidance already provided on line 27. Consider removing this duplicate or consolidating the guidance into a single location to avoid redundancy.

Copilot uses AI. Check for mistakes.
@aaronpowell aaronpowell merged commit aec65e3 into github:main Aug 21, 2025
2 checks passed
iletai pushed a commit to iletai/awesome-copilot that referenced this pull request Sep 3, 2025
@gewarren gewarren deleted the patch-1 branch September 30, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants