tags:

views:

189

answers:

1

Hello I would like that when I am in the python console tabbing will give me four spaces. Any ideas?

+4  A: 
  1. Download and install AutoHotkey
  2. Write this script:

    SetTitleMatchMode 2
    #IfWinActive python
    tab::
    Send, {SPACE}
    Send, {SPACE}
    Send, {SPACE}
    Send, {SPACE}
    

Save it as tab-to-space.ahk, and doubleclick on the file.

Note: you might have to captalize "Python" to match your window tite. Or you can have "yhton" and it will match Jython too.

Richard J. Terrell
Won't this change _every_ Tab you _ever_ type into 4 spaces? If so, won't that screw up a lot of other things?
sykora
++ for AHK. Love this little tool!
Eli Bendersky