I just submitted a request for a Xojo enhancement:
Add IDE preference to indent Case clauses inside Select Case
Does anyone else agree with this request or am I the odd-man-out?
-Wes
I just submitted a request for a Xojo enhancement:
Add IDE preference to indent Case clauses inside Select Case
Does anyone else agree with this request or am I the odd-man-out?
-Wes
No, you’re not the odd man out. I prefer the indent too.
Note to others. Don’t add a heart here. Click the link and click the thumbs up to support the idea. Hearts here are nice, but don’t make the change request more likely to happen.
While I support your feature request, I’d personally like to see a complete overhaul of the indentation system in the IDE. I’m not a fan of the way it forces you to indent the way Xojo wants you to indent.
Sometimes I want extra indents on a block of code to make it stand out to me. But nope, neither the spacebar nor the tab key do anything at the start of a line.
It really should all be up to the developer how they want to manage their indents, or even if they don’t want indents at all (which might actually prove you’re a serial killer lol).
@Anthony_G_Cyphers Can you elaborate on this a bit more? I tried what I think you suggested and I was in fact able to indent to my liking but after saving and reloading the project all of the indentations I created were removed and the code was back to Xojo standard indentation.
-Wes
@Christian_Wheel I too would like the freedom to indent any way I chose but if Xojo doesn’t want to allow for that option then I still have to question why every other code structure in Xojo appears to obey the parent/child relationship except the ‘Select Case’ structure. That one exception makes no sense to me.
-Wes
You probably have the reformat code setting enabled. That, I think, might strip it. I can’t look right now as I’m out for the weekend, but I often do this and save/reload without issue to draw my eye back to something specific I want to review later.
I’ve thought about this a bit, and I believe the thinking is it’s similar to the IF…ELSE…END block. While I can see that, it still bugs me that that the CASE statements aren’t indented.
To me, the cases aren’t children of the select, they’re directives. I don’t like the way it looks at all. ![]()
If it’s any consolation, Xcode does the same auto-indenting when it comes to switch case (the equivalent to Select Case).