Home Download Buy Blog Forum Support

PythonTidy integration

PythonTidy integration

Postby theblacklion on Tue Feb 08, 2011 11:31 pm

Hi all,

I've just uploaded my little plugin for integrating PythonTidy (tested with 1.20) into Sublime Text 2.
It can tidy either the current line or all selections. The processed code has to by compilable (syntax, indent correct and make sense) otherwise you will get an error message in your status bar.

It's definitely not perfect but provides help most of the time. I use it for cleaning up code from others or when I get generated JSON strings or Python dict-trees (everything in one line).

For usage info see the header of the py-file. You have to have PythonTidy within your path or in parallel to the "installed" py-file. I've copied both into my Packages/User folder.

You can find the code here:
https://bitbucket.org/theblacklion/subl ... n_tidy/src

Have fun!
Oktay.
theblacklion
 
Posts: 67
Joined: Sat Feb 05, 2011 10:07 pm
Location: Hannover, Germany

Return to Plugin Announcements

Who is online

Users browsing this forum: Exabot [Bot] and 17 guests