-
Notifications
You must be signed in to change notification settings - Fork 6k
Add formatting guidelines for F# reverse pipeline operator #48742
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
Add formatting guidelines for F# reverse pipeline operator #48742
Conversation
Co-authored-by: BillWagner <[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, once I apply suggestions
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 #48742 (review) and ensure the samples match the referenced styles in Fantomas |
Please start again @copilot |
…nventions Co-authored-by: BillWagner <[email protected]>
I've updated the reverse pipeline operator examples to align with Fantomas formatting conventions. The changes include:
The examples now follow the same philosophy as Fantomas - prefer single-line formatting for readability, wrap only when necessary for line length constraints. Commit: 16026e1 |
Fixes #32809
The F# style guide previously only provided formatting guidance for forward pipeline operators (
|>
), but lacked guidance for reverse pipeline operators (<|
). This created uncertainty about how to format multi-line expressions using the reverse pipeline operator.Changes
Added comprehensive formatting guidance for reverse pipeline operators in the "Formatting pipeline expressions" section:
Examples added
The guidance follows the same structure and style as existing pipeline operator documentation and aligns with Fantomas formatting conventions, ensuring consistency across the style guide. All F# code examples have been syntax-validated and tested.
Fixes #21459
Fixes #21459
💡 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