-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
[folding] show comment first line for folded sections #31966
Comments
This is not easy to implement with the current approach that we picked. The main reason is that our folding strategy is based on indentation only and doesn't have an understanding of what it folds (comments, blocks...). To do what you suggest it would need to have a language understanding in order to know that the folded content starts with a comment and to use the first line of the comment. Just showing the 2nd line instead of the first will not work in all cases. We have #3422 for adding language agnostic folding which is a prerequisite |
Depends on #70794 |
Language agnostic folding has been implemented, so this can be implemented as well now. |
Yes !! Good news ! Thank you. |
Is someone working on a PR? |
@abhishekmadhu I'm not aware of anyone working on it. But it's quite a complex issue. Happy to give you more details. |
I think it could be really useful to change the multiline comment folding.
When you fold a comment like this (like above php function) :
You see this :
In some editors like phpStorm or Eclipse, it's folded like this :
That's very more useful ;)
Is it possible to implement this kind of folding ?
The text was updated successfully, but these errors were encountered: