Create a button in the script editor to toggle Hide or Show all #Comments. Toggle to Show when close script edit.
This allows the developer to focus in lengthy scripts.
This isn't enough for me to down-vote, but I'd prefer if developers took the hint that their scripts are too long.
I have a few complex scripts, try calculating capital gains FIFO and LIFO on a pool of different security trades across exchanges. There are times when you just need to see the code but not loose the comments for those who will follow to maintain an upgrade the system. Hope that helps
How will you know if comments have been hidden? What are your comments for if none of them add to the understanding of the code? I'm sorry but this suggestion fills me with horror, please feel free to convince me otherwise!
#Comments are comments and they stay for a good reason.
For me more important is this feature:
Collapsible script steps (not whole section)
I understand that logic needs to be complicated sometimes. That doesn't make it wise to put all the logic in a single script. Any script I've seen that big that actually works is split into logical sections. My first refactoring step every time is to replace each of those sections with a separate script that does the same thing. If the logic needs enough comments to explain what is being done and why, that separate script may even have only one step in it — totally worth it. The human mind can only handle so much at once, and I think we're better off when the way we distribute logic among multiple scripts reflects that. Even for subject-matter experts with deep experience in complicated, large, highly detailed processes, they seem to keep everything in mind by selectively chunking large blocks of it off to focus on one particular dimension at a time — the same way chunking some logic into a separate script or custom function encapsulates the logic of how it works so we can think about something else instead when we use it (ideally).
… and in case you have many Variables to be set in same script, there's a nice trick I use by set 1 Variable which contains a 'Let  ' function.
You can even trigger BaseElements and MBS PlugIn functions:
# MBS save_as
Set Variable [ $FiveBirdsWithOneStone ; Value:
// FileDialog save_as path
$Reset = MBS("FileDialog.Reset") ;
$Title = MBS("FileDialog.SetWindowTitle"; "WindowTitle") ;
$Initial = MBS("FileDialog.SetInitialDirectory";
$Name = MBS("FileDialog.SetNameFieldStringValue"; "FieldString") ;
$path = MBS( "Folders.UserDesktop" )
; "empty" )
Retrieving data ...