Gobliins
Gobliins

Reputation: 4026

How to make Eclipse (pydev) automatically fold all comments when opening a file?

Is there a way that eclipse (edit: under windows) folds all comments and docstrings automatically when I open a python file?

Upvotes: 5

Views: 2121

Answers (2)

Fabio Zadrozny
Fabio Zadrozny

Reputation: 25342

This feature is now available in PyDev and can be enabled by going into the preferences:

PyDev > Editor > Code Folding

and then selecting what you want to fold initially.

i.e.:

PyDev folding preferences

Upvotes: 3

Francis
Francis

Reputation: 75

By default the loop and condition folds are disabled, to enable them go to Window -> Preferences -> PyDev -> Editor -> Code Folding. Apply code folding to all entries

Upvotes: 6

Related Questions