I've recently been editing files with a lot of long comments. I find myself folding lots of them manually, is there a way to fold all of these at once, using some kind of menu entry or keyboard shortcut?
I came to this question recently with the same one, but I've ince found it is possible to do this in recent pycharms. In pycharm 2020.3 (and possibly earlier versions, but that's the one I'm using), there is now an option to "Collapse Doc Comments", which appears to do what you need! It collapsed all the docstring comments in my file and ignored all other collapsible portions of code.
Code
-> Folding
-> Collapse Doc Comments
Press (Command) and +(key) to expand and use -(key) to collapse
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With