Can only unfold code on lowest line number

The code folding feature of the studio script editor is broken in that you can’t unfold anything which isn’t the top-most line (as in, on the lowest line number).

Start with the following code:

code-fold-1

Press ctrl + shift + e to fold everything:

code-fold-2

Then attempt to unfold line 5 and you’ll see nothing happen.

This can be reproduced 100% of the time on my system. I believe it started happening about a year ago.


The painful workaround is to unfold everything above the folded code bit. E.g., in this case, unfold line 1, then line 5. The ez workaround which totally negates the point of the code folding feature is to unfold everything with ctrl + e.

3 Likes

Is this the same issue as this thread?
https://devforum.roblox.com/t/studio-script-editor-fold-glitch-send-help/41110

2 Likes

Indeed. Also this one, but it was a year old and I already steered the conversation in the wrong way, so I opted to make a new thread instead of bumping it.

2 Likes

If you triple click the words that the code folds onto it will open as intended.
https://giphy.com/gifs/7TwwxCcL4wztpKaAWX

1 Like

Ah, nice! This is a pretty good workaround, albeit unintuitive to come across on one’s own.


Edit: for those who’d like an AutoHotKey script, I wrote one for my own benefit. This maps the Mouse5 button (browser forward) to the triple click.

#SingleInstance force

; The next line prevents the mouse from moving while a "Click" (or similar mouse operation) is
; underway. This requires running the executable as an administrator.
; If you don't, the only consequence is that the triple click may click different pixels, so you
; won't get the full-line-selection you wanted.
BlockInput Mouse

XButton2::
	Click 3
2 Likes

Other people and I have already reported this issue and Roblox knows about it.
I don’t know when it began to occur, but it’s been six months since my report. :neutral_face:

Six months warrants another nag! :slight_smile:

It’s possible they closed their bug report as fixed accidentally, or simply just have it ranked at too low priority. I’m tryna light a fire under them.

1 Like

I’ve already gone bald from this issue, it’s too late.

Bumping. Same issue.

1 Like