SimpylFold icon indicating copy to clipboard operation
SimpylFold copied to clipboard

only fold docstrings?

Open tr3buchet opened this issue 6 years ago • 3 comments

I'm trying to fold only docstrings, is this possible?

tr3buchet avatar Apr 09 '18 20:04 tr3buchet

No, there's currently no option for this.

tmhedberg avatar Apr 09 '18 22:04 tmhedberg

We can do a trick to achieve this task by modifying syntax.python - add fold at end of pythonDocString in that file.

ghost avatar Aug 29 '18 12:08 ghost

This may be good enough:

:set foldlevel=2

dvrlabs avatar Apr 07 '23 12:04 dvrlabs