Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

Any idea is wellcome

share|improve this question
I think this question is slightly different and in its core not covered in the other question. – txwikinger Oct 20 '10 at 1:22
@Murat: Even if it is, it's better to have one question per question. – Matthew Pirocchi Oct 20 '10 at 3:32
The question referenced in the first comment simply asks for a code-folding feature, with the currently leading answer stating there is a problem with the plugin, but not proposing a solution. This question is intended to find that solution, so is not a duplicate. – Chris Wilson Oct 20 '10 at 12:30
up vote 6 down vote accepted

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)

share|improve this answer
Someone needs to look at this plugin ( and use it as a starting point for an official code-folding plugin for Gedit 3. – trusktr Oct 3 '12 at 1:32

Solution in this page works:

share|improve this answer
+1, it is very basic (keyboard based only), but works! (tested on v2.30.4) – alfC Nov 4 '11 at 7:18
This plugin needs to be updated for Gedit 3... Ad used as a starting point for an official code folding plugin for Gedit. – trusktr Oct 3 '12 at 1:31
@trusktr -- looks like there are a few forks for Gedit 3. Here is one: – mason81 Nov 12 '14 at 19:03
@mason81 Thanks! I've since moved on to Vim though (and probably NeoVIm soon). :D – trusktr Nov 13 '14 at 0:49

Just adding an update to this question, since I was searching for a solution to this question myself and this page popped up in google.

gedit-folding by Jacek Pliszka is a nice simple tool to fold code on multiple levels that I had installed on another computer but could not remember where I had gotten it. It is featured on the wiki page for third party plugins for G-Edit 3.14 where I found it again.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.