Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

If you are trying to write python code inside of gedit, you probably want auto-tabbing. Meaning suppose you are writing a method, you type something like:

def foo():

Then hit enter. The cursor goes to the next line. You naturally hit tab to write code for the method

def foo():
    print 'foo'

So after print 'foo' if you hit enter, the cursor comes to the beginning of the line; it doesn't auto tab and appear under the p in print

So I googled for plugins, and I came up with gedit-autotab. But this one was developed when gnome2 was popular. Hence I googled to find out about how to install plugins on unity and took references from here. Basically it says we have to paste the downloaded stuff into:


However I have downloaded gedit-autotab and copied the archive contents to the above folder. And it didn't work! How to get this fixed?

share|improve this question
gedit-autotab won't work with Gnome 3.6. The feature you were apparently looking for is called "automatic indentation", so the title of the question is misleading. Care to edit? – krlmlr May 16 '13 at 13:54
There is a "modern gedits" fork here: – Stoffe Mar 13 '15 at 9:48
up vote 0 down vote accepted

In a default installation the automatic indentation feature of gedit is found in Edit -> Preferences... -> Editor:

enter image description here

share|improve this answer
Totally missed this one...thanx – deostroll Jun 20 '12 at 18:39

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.