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

Provide code fix for Modifiers are not ordered (IDE0036) #7553

Closed
just-ero opened this issue Sep 11, 2024 · 0 comments · Fixed by dotnet/roslyn#75092
Closed

Provide code fix for Modifiers are not ordered (IDE0036) #7553

just-ero opened this issue Sep 11, 2024 · 0 comments · Fixed by dotnet/roslyn#75092
Assignees

Comments

@just-ero
Copy link

Environment data

VS Code version: 1.93.0, 4849ca9bdf9666755eb463db297b69e5385090e3, x64
C# Extension version: v2.46.32

Steps to reproduce

  1. Create or open a C# project.
  2. Create or open an .editorconfig file.
  3. Add the following rule:
    csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
  4. Add any code violating the rule, such as
    public unsafe sealed class C;
  5. Observe the suggestion. Code fix Order modifiers is not provided.

Additional context

The fix is provided in Visual Studio and applied by dotnet format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants