Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick actions use wrong indent #65375

Closed
vsfeedback opened this issue Nov 11, 2022 · 3 comments · Fixed by #65382
Closed

Quick actions use wrong indent #65375

vsfeedback opened this issue Nov 11, 2022 · 3 comments · Fixed by #65382
Assignees
Labels
Area-IDE Bug Resolution-Duplicate The described behavior is tracked in another issue

Comments

@vsfeedback
Copy link

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:

  1. (Make sure you have tab indent set to 2)
  2. Type var up = "down".ToUpper();
  3. Position cursor on var
  4. Type Ctrl+.
  5. In the context menu choose "Use explicit type instead of 'var'"

As you can see in the screenshot, the proposed substitution is incorrectly indented.
image.png

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)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 11, 2022
@arkalyanms arkalyanms added Bug and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 11, 2022
@arkalyanms
Copy link
Member

Could this be from #61091?

@Youssef1313
Copy link
Member

See also #65360

@CyrusNajmabadi
Copy link
Member

CyrusNajmabadi commented Nov 11, 2022

Duplicate of #65360

@CyrusNajmabadi CyrusNajmabadi closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2022
@CyrusNajmabadi CyrusNajmabadi marked this as a duplicate of #65360 Nov 16, 2022
@sharwell sharwell added the Resolution-Duplicate The described behavior is tracked in another issue label Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug Resolution-Duplicate The described behavior is tracked in another issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants