You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[regression] [worked-in:17.2]
When using a "Quick action or Refactoring...", either started by Ctrl+. or clicking the lightbulb or through the context menu, the resulting code is not indented with the configured value. We use an indent of 2, but the code is indented with the default of 4.
This used to work correctly in the previous versions of VS 2022 (I guess 17.2; now using 17.4.0).
Steps to reproduce:
(Make sure you have tab indent set to 2)
Type var up = "down".ToUpper();
Position cursor on var
Type Ctrl+.
In the context menu choose "Use explicit type instead of 'var'"
As you can see in the screenshot, the proposed substitution is incorrectly indented.
This happens with all refactorings.
Original Comments
Feedback Bot on 11/10/2022, 06:53 PM:
(private comment, text removed)
Chris Wang [MSFT] on 11/11/2022, 00:08 AM:
(private comment, text removed)
hdejonge on 11/11/2022, 00:56 AM:
(private comment, text removed)
Feedback Bot on 11/11/2022, 02:00 AM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered:
This issue has been moved from a ticket on Developer Community.
[regression] [worked-in:17.2]
When using a "Quick action or Refactoring...", either started by Ctrl+. or clicking the lightbulb or through the context menu, the resulting code is not indented with the configured value. We use an indent of 2, but the code is indented with the default of 4.
This used to work correctly in the previous versions of VS 2022 (I guess 17.2; now using 17.4.0).
Steps to reproduce:
var up = "down".ToUpper();
var
As you can see in the screenshot, the proposed substitution is incorrectly indented.
This happens with all refactorings.
Original Comments
Feedback Bot on 11/10/2022, 06:53 PM:
(private comment, text removed)
Chris Wang [MSFT] on 11/11/2022, 00:08 AM:
(private comment, text removed)
hdejonge on 11/11/2022, 00:56 AM:
(private comment, text removed)
Feedback Bot on 11/11/2022, 02:00 AM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: