Incorrect switch indentation when using indented braces #46464
Labels
Area-IDE
Bug
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
IDE-Formatter
Code formatter and/or smart indent
Milestone
This issue has been moved from a ticket on Developer Community.
[severity:I'm somewhat annoyed. A fix would be nice]
When Visual Studio is configured to indent braces it incorrectly indents content of a switch statement. Attached solution with a sample for reproduction. Open
Program.cs
and and useCtrl+K, Ctrl+D
shortcut to format code.Expected result:
Actual result:
Original Comments
Feedback Bot on 7/30/2020, 00:38 AM:
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 7/30/2020, 04:08 PM:
This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: