Looking for a Python editor that will let me collapse functions

Question:

I really loved this feature when I used Eclipse for Java programming, but I can’t find the same functionality for a Python editor. IDLE and Pyscripter are nice, but they don’t help in this area.

Basically, I just want the option to collapse or otherwise hide functions that I don’t feel like looking at for a while. Know of anything like this?

Asked By: anthony

||

Answers:

Notepad++ has this feature.

Answered By: orlp

Geany can do this.

In addition to the aforementioned (great) editors, you might want to give PyDev a shot as well.

Answered By: A_A

Komodo Edit IDE, for Windows, Mac and Linux, for Python, PHP, Ruby, JavaScript, Perl and Web Dev.

I’ve used Komodo Edit and Notepad++ in the past but my current preference is Sublime Text Edit 2.

Although not free (and actually quite expensive), it can be used in free mode with only an occasional reminder and no other restrictions.

It is actually written in Python so you get a Python console built in – you can also get other consoles such as JavaScript. It is VERY flexible & has some very good features. It is also has an excellent community with loads of very useful plugins.

It is much lighter on resource usage than Komodo, can use Textmate bundles directly (so gets loads of formatting options for different file types). It is cross-platform and doesn’t even need installation on Windows.

Answered By: Julian Knight

Pycharm CE, from Jet Brains, indeed, wonderful. Functions and comments collapse is ready out of the box, as well as edit helpers. Project files and assets organization, integrated python console, powerful debugging tools,… Then, lots of plugins: git integration, tinycode view, extra languages’ helpers and highlighters,…. anything you need when coding, but simple and easy to use. There’s a Pro (paid) version for those who want even more.
https://www.jetbrains.com/pycharm/download

(This question is more than 10 years old. I got surprised, nobody answered about Pycharm before…)

Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.