code icon indicating copy to clipboard operation
code copied to clipboard

when code is written i would like to close functions. by hiding the contents.

Open kvdz opened this issue 7 years ago • 3 comments

see visual studio code you can collapse a function whichj only shows the function name and not the code in side the function.

kvdz avatar Aug 13 '18 07:08 kvdz

Since code uses gtksourceview, I don't think it will be possible to have code folding until gtksourceview supports it. It is still a todo item on its roadmap https://wiki.gnome.org/Projects/GtkSourceView/RoadMap

arshubham avatar Aug 13 '18 14:08 arshubham

Removing the bounty label as there is not yet a bounty for this issue as well as the bitesize label because this looks a little more complex.

micahilbery avatar Aug 13 '18 15:08 micahilbery

Bumping, as I'm not sure if this has been revisited since 2018 and I would very much also like code folding in Code.

Tepl looks to have some of the stubs now. https://gitlab.gnome.org/search?search=code+fold&group_id=4001&project_id=859&scope=&search_code=true&snippets=false&repository_ref=master&nav_source=navbar

Specifically, https://gitlab.gnome.org/Archive/tepl/-/blob/master/tepl/tepl-gutter-renderer-folds.h

MobileAZN avatar Feb 23 '22 23:02 MobileAZN