I'm having a very frustrating issue with PyCharm in that it does not want to properly outline the code so that blocks fold correctly. I've looked all over the place and couldn't find any help with this particular problem. In a nutshell, PyCharm seems to decide on skewed block boundaries so that the blocks fold up on each other. It's quite irritating. Any thoughts?
Trying to collapse _get_thread_name
yields this:
Finally!! I figured out how to remove the invalid folding regions. If you place your cursor on the line that starts an invalid folding block (line 106 in my first example), then right click anywhere in that line and select Folding -> Fold Selection / Remove Region
and that will delete the incorrect folding annotation!
I still have no clue why they are generated in the first place, but at least this is a decent "fix".
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