Reputation: 4026
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
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.:
Upvotes: 3
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