How to code fold without hiding the method's docstrings?

Hi! I am a python and pycharm newbie. I am writing tests for a project where each file just ends up accumulating a lot of tests and so I need to fold code but also be able to see the docstrings. Can I modify some setting in Pycharm to achieve this? I googled and found https://www.jetbrains.com/pycharm/help/folding-custom-regions-with-line-comments.html but am not sure if doing that will get me what I require from pycharm.
1 comment
Comment actions Permalink

I think that's the best solution. Minimal impact on your code and supported in future versions.

0

Please sign in to leave a comment.