Lambda expressions with attributes are formatted incorrectly #56543
Labels
Area-IDE
Bug
Feature - Lambda Improvements
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
Version Used: Visual Studio 2022 Preview 4, Compiler version: '4.0.0-4.21458.2 (2bfff7b)'. Language version: 10.0.
Steps to Reproduce:
Program.cs
with the following:Expected Behavior:
No changes, the code is well-formatted.
Actual Behavior:
The space between the assignment operator and the attribute is removed:
As far as I know there is not an editorconfig setting for the spaces around the assignment operator, but to remove any doubt I also reproduced this with with Roslyn's
.editorconfig
.Relates to test plan #52192
The text was updated successfully, but these errors were encountered: