Search code examples
pythondjangotidyindentationcoda

Easiest way to reindent / tidy Python code in Coda?


Anyone have a clever way of quickly fixing indentation problems in Python documents in the Coda editor for Mac?

Some have said that reindent.py is the way to go, but it doesn't even ship with all versions of Python. Thoughts?


Solution

  • You can get reindent.py from the following link: http://svn.python.org/view/python/trunk/Tools/scripts/reindent.py?revision=66903&view=markup

    (Note: Original link from an old Alex Martelli comment whose reference I've lost.