-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Associate information in the gutter with each folding point #45
Comments
The shortcuts |
My request was not about using the My suggestion concerned the possibility of having visual feedback on the scope of a folding, for example by adding information in the gutter. The formalism is just for illustration and could take a whole other form. If VS Code does not manage a level in the folding, nor the "Explicit Folder" extension currently, perhaps it would be possible to associate an information with each declaration of markers in the "folding" settings, and that this information then be used for display in the gutter. The "Explicit Folder" extension could have a set of predefined icons, or give the possibility to provide your own icons, that we could associate with a group of markers, for display in the gutter. For example by adding a "decoration" property to each group expressing a folding.
Confer DecorationRenderOptions. |
I agree that it can be helpful. VSCode manage the levels of folding since you can collapse the foldings based on their level. Here the definition of a range:
Me too, I would like to change how to display a folding, like adding the number of lines when the folding is collapsed. |
I modified my issue to no longer refer to a range, but just to associate visual information with each folding point. I propose to leave this request pending and mark it as an "enhancement". |
Describe the issue
With hierarchical folding (separator / separatorRegex + descendants), it becomes difficult to see the scope of a folding.
Would it be possible to materialize this scope visually at the level of VS Code?
Either by using particular folding markers, for example by using color codes (but I don't think that is possible).
Either by adding information in the gutter: a level number (which then makes it possible to use the commands
Ctrl+K Ctrl+<niv>
), or a colored line extending over all the lines concerned by the folding.To reproduce
Code Example
Settings
Expected behavior
See the scope of a folding before making it.
Screenshots
The text was updated successfully, but these errors were encountered: