[TxMt] Re: Folding Python
Jacob Rus
jrus at fas.harvard.edu
Mon May 8 17:27:36 UTC 2006
David Chin wrote:
> Is it possible to have Python fold a complete class
> definition, rather than just the "class ..." statement
> and the docstring?
It does fold complete class definitions... if your whitespace is setup
the way TextMate expects. You need to not dedent in the middle of a
class or function, and you need to make sure to dedent at least one line
after every class/function.
There's a "cleanup whitespace" command in the python bundle that tries
to do this for you.
-Jacob
More information about the textmate
mailing list