Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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:

~/.local/share/gedit/plugins

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

1 Answer 1

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

 
discard

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.