Search code examples
pythoneclipsepydevfolding

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?


Solution

  • 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