Automatic indentation for Python in Notepad++

Joe picture Joe · Apr 3, 2011 · Viewed 71.8k times · Source

I've been googling lots and this is getting really frustrating. It doesn't act like idle.

Example:

else:  
    name = 'World'
    print 'Howdy', name
    print 'yay'

but in Notepad++

else: # i press enter and this is what it does
lands me here

But I want to be able to do like in idle: after the : I can just press enter and keep on going. My English isn't that great.

I have my filetype set to Python etc. and my format to unix.

Answer

Thomas B. picture Thomas B. · Jun 27, 2011

This is what you want:

Settings > Preferences > MISC. > Auto-Indent (checkbox)

--

Sometimes people ask, "How can I do x in program y?"

I have a dream that one day "Use program z instead" will not be the most popular response.