-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Visual Studio-style folding #214299
Comments
#3352 captures the request to have closing bracket in the folded region. There's currently no plan to work on such a feature. |
I think my request was misunderstood for a different, commonly-asked request. I was not requesting closing brackets captured in folding region. You are correct that this is already handled by an extension, which I mentioned in my request. |
That is exactly correct. I cannot replicate the behaviour captured in your GIF. Even if I write a Typescript snippet, the folding marker stays with the opening bracket. I tried disabling extensions as well to make sure nothing I had was interfering with the default behaviour. Is the behaviour in the GIF the result of a Typescript-specific extension? I notice, also, that in the GIF the opening bracket is hidden when collapsed, while when I attempted to try this without extensions only the lines between the brackets are collapsed. |
Thats strange. It's not what I see with TypeScript. |
Visual Studio recognises the line above a free-standing opening bracket as the basis for folding and folds it all into one line, like so:
In comparison, even with extensions, the closest I can get to replicating this behaviour in VSCode is this:


I have been informed by the extension developer that it is not possible to fix this issue by extension.
Although I've come to prefer VSCode in all other aspects, this lone issue does detract from the experience of using it as someone who has always written code in Allman-style. It doubles the vertical space consumed by a folded block, and it's much less clean to read.
If this will not be accepted as a feature, I would be grateful to receive a pointer as to where I could change this behaviour so that I can build a personal fork.
The text was updated successfully, but these errors were encountered: