Maybe this already exists and I cannot find it in help, but it would be nice if you could have collapsible code regions like what some other IDEs include. Yes comments are great but I use comments to indicate a section of code, and it can be hard to tell if another comment is defining the next section, a sub section, or a note.
What you describe is not an issue in Issues terms: it’s not a bug, you suggest Xojo to add a new functionality to the editor. Can’t recall if it’s called an idea or something else.
I suppose that’s a bit more flexible or general than what Xojo has, but I would never use such a feature anyway - too much clutter. I only use the Xojo feature by accident.
If you check out the ticket that was filed, the OP said they don’t care about the syntax, so we pointed out #if true then works the same. The request then evolved into “we want named regions.”
The more we pointed out this feature already exists, the more the request mutated. Since the request wasn’t clear and keeps mutating I got frustrated and gave up.
Correct. Yes Xojo supports code folding but that only applys to code blocks like IF statements and FOR/DO loops. I am suggesting a feature that allows you to make arbutary blocks of code that can be folded, like the #region in Visual Studio.
When I said I don’t care about the syntrax I mean I don’t care if it is some thing like #region from visual studio (which seems to be the only live example I can find), or #block, or Start. The problem with #if true then is that its confusing to an outside observer and it doesn’t stand out as this is a block of code like we are in a new section of a book.