-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
This issue has been moved from a ticket on Developer Community.
[regression] [worked-in:17.4.33110.190]
After updating to VS2026 v 18.2.1 the code cleanup profile does not format the code as before. The most visible difference is that chained method calls are not indented as they were before. The cleanup profile runs each time when the document is saved (some other formattings are applied).
It doesn't help if I format just the selection or whole file or manually run code cleanup profile. I also checked the formattings that are avialable in the profile, but there is no obvious setting that would turn that on.
var guids = data
.Where(guid => guid.HasValue)
.Select(guid => guid!.Value)
.ToArray();
Should be formatted as:
var guids = data
.Where(guid => guid.HasValue)
.Select(guid => guid!.Value)
.ToArray();
Original Comments
Feedback Bot on 2/4/2026, 07:32 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.
YI CHWEEN ONG (Centific Technologies Inc) [MSFT] on 2/9/2026, 05:50 AM:
Thanks for your sharing the detail steps, I can reproduce this issue through your shared steps and this issue has been escalated for further investigation, if there is any process, I will inform you immediately.