Confusing/Frustrating folding behavior
-
Hello,
Using version 8.9.6.4 s4-bit
Windows 11
Language: PythonI’ve noticed this for awhile, even in previous versions.
I normally like to keep my functions folded so I can navigate easily, unfolding them as needed, when editing, then folding them back up.My issue is that often, not always, but often, once I fold the function back up, the FUNCTION BELOW IT has somehow opened, so I close THAT one and…
The NEXT one is now unfolded, so I fold that…
This continues all the way down my file. I will have to manually fold every. single. function. And no, I am not forgetting to fold them up and only noticing it later. I at first thought that was what was happening, but no, they are unfolding on their own. Sure, I can fold them up again, but it is annoying. Also, it doesn’t always happen. Only sometimes.
-
That sounds similar to Issue #18093, where the seemingly-random unfolding was happening for a UDL instead of for Python. In that issue, it’s because of the presence of a
I don’t know if it’s related or not. Can you share a small piece of code (maybe 3 blocks long) that shows the problem if that’s all you have in the file? For example, I cannot replicate your problem with
def first(): more() return def more(): # commented pass def most(): first() more() returnI will have to manually fold every. single. function
Well, that’s the easy part.
Alt+0folds everything with one keystroke (the default keystroke for View > Fold All).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login