Ability to create outlines/sections in code editor

Say you have like a 3 thousand line script.
It’s definitely hard to navigate through it to find the code you’re trying to modify.

In Google docs there’s something like this

There should be a feature in the script menu allowing to attach a outline section to a “–” comment, so you can jump around. Like, ex, “Variables” “Functions” “Events” can be accessible with a few clicks. And it’s different with every script.

When copying and pasting a script, it saves the outline for it. You can also delete outlines if you’re obfuscating your code.

12 Likes

I wouldn’t mind some features like this, but if your script is 3000 lines you should really consider dividing it into small, easy-to-manage ModuleScripts

5 Likes

For now, you can wrap your code in do ends and comment.
image

do -- Handle me them memes
    Something();
    SomethingElse();
end;
1 Like

That’s silly, do end should only be used for scope and isn’t really what OP is asking.

I think one should be aware that do end itself does not compile, and is perfect for both scope and organizing your code, without any drawbacks.
It works out perfectly, and with comments it’s CTRL + F friendly.

1 Like