-
Notifications
You must be signed in to change notification settings - Fork 28k
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
Bug: A folded method also hides empty lines after it #55304
Comments
(Experimental duplicate detection) |
I'm guessing you have the C# extension installed. |
This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. Happy Coding! |
@kieferrm I use c# yes. I don't understand - isn't this a problem with the IDE? |
@lonix1 VS Code out of the box does not have any deep C# knowledge. If you have the C# extension installed, the C# extension provides VS Code with the knowledge about which ranges are folding ranges. Thus, the issue you describe is with the extension, not with VS Code proper. |
@kieferrm Thanks I get it now |
Steps to Reproduce:
Example before folding:
Example after folding:
I've marked this as a bug, rather than a request, because this is not how folding works with Visual Studio - which only folds code, not whitespace after it. And I assume you're aiming for parity with the IDEs, at least for c# anyway.
This is a really annoying problem, because when code is folded everything is buched up together and you can't visually separate between them - which is why you'd use empty lines between them.
The text was updated successfully, but these errors were encountered: