Does anyone know about a way to get code folding in gedit? I've found this plugin in google code, but looks like dead and doesn't work with the latest gedit.
Code folding in a good manner is stated to be difficult because the GtkSourceView component would need to be edited.
Still there was this simple plugin that used to work until gedit 2.28...
And it's on the official roadmap at least...
To answer your question: No currently no option (unless someone would fix the old plugin)
Solution in this page works:
gedit-folding by Jacek Pliszka is a nice simple tool to fold code on multiple levels. It is featured on the GNOME Wiki page for third party plugins for gedit 3.14.
It took 919 lines of bash code and folded onto one page. It helps me spot constants I need to move into functions. It also made me realize some functions need to be broken down into smaller chunks:
Note: To install it I had to first create the directory
Then change to that directory and run
git clone https://github.com/aeischeid/gedit-folding
Next use gedit's menu
I only wish I new Python (it's only 174 line program) so I could modify it to save folded code marks and reapply them when file is reopened. I can see now I'll be keeping the same file open for 2 weeks :)