-
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.
I have a top-level editorconfig that sets end_of_line = lf. If I begin writing a class such as
class MyClass : IDisposableor
class MyClass : IDisposable;and pause my typing, I get the expected 'MyClass' does not implement interface member 'IDisposable.Dispose()'.
I then select the "Implement interface" fix, and VS2022 will generate the rest of the class like this:
class MyClass : IDisposable
{
public void Dispose() => throw new NotImplementedException();
}however, the line endings of this part of the file include CRLF, and I see "MIXED" in the bottom right corner of the document.
Note: this only seems to happen in the cases above, where the class is incomplete or ends with a semicolon. If the class looks like:
class MyClass : IDisposable { }or if the body of the class is already present, then the newly added Dispose method is generated using the correct line endings, and I continue to see LF in the bottom right of the doc.
I am using VS2022 17.14.9 (July 2025)
Original Comments
Feedback Bot on 7/18/2025, 07:55 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.
Feedback Bot on 7/24/2025, 08:22 PM:
This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status