EditorConfig setting for csharp_new_line_before_open_brace is not saved correctly in Visual Studio #57937
Labels
Area-IDE
Concept-Continuous Improvement
Developer Community
The issue was originally reported on https://developercommunity.visualstudio.com
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work]
When using the default editor layout in Visual Studio 2022 for a .editorconfig file, when making changes to the csharp_new_line_before_open_brace entry, regardless of what is selected, the setting value saved to the .editorconfig is always "all".
If you use the default editor in Visual Studio, after you make changes to the csharp_new_line_before_open_brace option, the file is not marked as dirty to show changes are not saved. If you close the editor and re-launch it, any changes made to those settings are gone.
If you edit the .editorconfig file manually using any text editor in Visual Studio, you can manually change it to none or all and it works. The code formatting for braces is applied correctly. I don't know what other values are permissible for csharp_new_line_before_open_brace, so that's why I use the default editor in Visual Studio and simply select/unselect the options from the list provided.
I was expecting Visual Studio to write & save the correct value for the csharp_new_line_before_open_brace setting based on the selections made from the list provided in the default editor.
Jason
Original Comments
Feedback Bot on 11/18/2021, 07:09 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Feedback Bot on 11/19/2021, 09:42 AM:
Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem?view=vs-2019#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: