Skip to content
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

Formatting Option for brace newlines in switch expressions #1718

Closed
fmoo opened this issue Feb 20, 2020 · 1 comment
Closed

Formatting Option for brace newlines in switch expressions #1718

fmoo opened this issue Feb 20, 2020 · 1 comment

Comments

@fmoo
Copy link

fmoo commented Feb 20, 2020

The current collection of Configuration Options do not seem to include an option to disable newlines before the opening brace of a Switch Expression.

This creates visual inconsistencies with switch statements for projects that have e.g., NewLinesForBracesInControlBlocks set to false.

Could we get a new property for switch expressions (or have an existing property mapped) to allow for consistency in formatting?

@filipw
Copy link
Member

filipw commented May 25, 2020

thanks a lot for the issue - however, OmniSharp doesn't have its own formatting engine - we merely expose to the users the features what Roslyn gives us (and, well, not just us but also, for example, Visual Studio). The issue you mentioned is already logged in the Roslyn repo dotnet/roslyn#36913

once that's available in Roslyn, we will have it in OmniSharp

@filipw filipw closed this as completed May 25, 2020
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

No branches or pull requests

2 participants