-
Notifications
You must be signed in to change notification settings - Fork 6k
Document IDE2000-2006 newline preference rules #48011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: gewarren <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Please address this feedback.
…ents, simplify examples Co-authored-by: gewarren <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ready for final review.
FYI, these are all 'experimental'. So subject to change/removal at any time. Just want to make sure the docs reflect that. Users can use these. But we make no promises on them. |
This PR adds comprehensive documentation for IDE2000-2006, which are newline preference rules for .NET code analysis. These rules help enforce consistent formatting and readability standards for blank lines and statement placement in C# and Visual Basic code.
Changes Made
New Documentation Files
Created individual documentation files for each rule:
Each documentation file includes:
Updated Index Files
Documentation Standards
All files follow established patterns from existing IDE rule documentation and include:
[*.{cs,vb}]
section headersThe documentation addresses the gap identified in the Roslyn repository's RulesMissingDocumentation.md file and provides developers with clear guidance on these newline formatting rules.
Fixes #47510.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Internal previews