Suggestion: code folding

I think it would be beneficial if we could click the arrow in the gutter to collapse the function block down to just the declaration.

This would make it easier to work on specific parts of a project without having to scroll so much in larger files.

@Kizik - I think that would be a good idea. I’m sure it’s been mentioned before. I’ve used it in other packages not sure which, possibly Visual Basic. Change the colour of the function pointer to mark it as collapsed

Or simply rotate it so the pointer is facing down signifying it’s collapsed.

@kizik - yeah, that would work too. Or possibly both rotate and change colour.

This would be great.

1 Like

bumping this too as it’s an important missing feature.

how could this work together with the drawn annotations we have in beta?
perhaps drawn annotations can collapse along?
they could come in bounding boxes that are attached to some special attachment point(magic character?) that is part of the code (in an annotation) that will also collapse the drawing when that line is collapsed?
like
– green text
and
— extra bright green text
and kinda like how we get fancy color wheels when we use color(r,g,b,a)

@Amber - thanks for pushing the function expansion/collapse - a feature I have used and like in other packages.

As for the drawing on the editor window seems like an untidy distraction to me - unlikely to use it - but, say a button after the brackets in a function title to open a small scrollable window where you could draw a diagram and add textual annotations feels more practical and relevant to that local code. What do you think @sim @jfperusse ?

in my experience there is value in being able to see a drawing alongside the code you’re writing. for example a note of where what points are when adding triangles or worse: texture coords😅

@Amber - if the drawing window was moveble would that help ?

Glad to see this getting some traction again.

movable, collapsible, rescale-able, ability to keep it open as you’re coding.