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

Performing quick actions makes unwanted changes #54202

Closed
vsfeedback opened this issue Jun 18, 2021 · 0 comments · Fixed by #54216
Closed

Performing quick actions makes unwanted changes #54202

vsfeedback opened this issue Jun 18, 2021 · 0 comments · Fixed by #54216
Assignees
Labels
4 - In Review A fix for the issue is submitted for review. Area-IDE Bug IDE-CodeStyle Built-in analyzers, fixes, and refactorings
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


  1. Create a C # project (.NET Framework 4.8 class library, etc.).

  2. Write the #region directive at the beginning of the class definition.

  3. Declare the variable in the #region directive.

  4. Change the class to a static class.

namespace ClassLibrary1
{
    public static class Class1
    {
        #region Private Fields

private int i;

#endregion
    }
}
  1. Use the quick action to statically change the variable.

The start of #region just before the variable declaration is removed.

namespace ClassLibrary1
{
    public static class Class1
    {
        private static int i;

#endregion
    }
}

Visual Studio Community 2019 Version 16.10.2


Original Comments

Feedback Bot on 6/18/2021, 02:36 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.


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 Jun 18, 2021
@jinujoseph jinujoseph added 4 - In Review A fix for the issue is submitted for review. Bug IDE-CodeStyle Built-in analyzers, fixes, and refactorings and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 10, 2021
@jinujoseph jinujoseph added this to the 17.0 milestone Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - In Review A fix for the issue is submitted for review. Area-IDE Bug IDE-CodeStyle Built-in analyzers, fixes, and refactorings
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants