match braces?

Tim Chase python.list at tim.thechases.com
Thu Sep 3 05:51:39 EDT 2009


> In C/C++ you use the braces where as in Python you use the indentation
> levels.
> Most editors offer a Ctrl+[ to match the braces so that you can easily
> identify the scopes (more correctly "statements blocks").
> 
> I am finding it difficult to see blocks and/or jump from end to start
> with some IDE hotkeys, when coding in Python. Any advise?

Any editor worth its salt will offer indentation-based folding (I 
know vim does, and I would be astonished if emacs didn't.  With 
other editors, YMMV).  You can just collapse the indented section 
to get a big-picture view.

-tkc




More information about the Python-list mailing list