[folding] custom folding text for folded ranges
See original GitHub issueCurrently when you create custom folds using a FoldingRangeProvider, there is no option to edit the text that is displayed when the text is folded. The editor just displays the first line of the fold with a three dots symbol after it.
#region Some region description...
It would be helpful if it was possible for FoldingRangeProvider
instances to return ranges with a RangeDisplayName property that would be displayed when the folding range wass collapsed. I’d suggest that the display text would replace the … symbol and the first line would no longer be displayed as per the behaviour in Visual Studio.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:21
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Custom folding in text mode (addFold, session,unfold)
Now I'm trying to implement a feature that fold part of the log depending the section a user wants to look into. I...
Read more >Fold code elements | JetBrains Rider Documentation
A custom folding region for a selection is created and removed by means of the Code | Folding | Fold Selection/ Remove Region...
Read more >Folding selected text - atom editor - Stack Overflow
Finally, you can fold arbitrary sections of your code or text by making a selection and then typing Alt+Ctrl+F or choosing "Fold Selection"...
Read more >Fold - EditPad Pro
If you did not select part of the text, and the text cursor is inside a foldable range that is unfolded, then the...
Read more >Fold | Learn Vim
Fold is an operator, so it follows the grammar rule ( verb + noun ). You can pass the fold operator with a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mtbaqer Yes, PR’s are welcome
Hey, wanted to take a stab at this issue since it would be really helpful for the extension we are working on, but I don’t see a
help wanted
label. So wanted to clarify the https://github.com/microsoft/vscode/issues/70794#issuecomment-513154063 above, can we provide a community PR for this?