# Custom code reformatting

**URL:** <https://forum.xojo.com/t/custom-code-reformatting/89052>\
**Category:** General\
**Created:** [October 21, 2026, 10:06pm UTC](https://forum.xojo.com/t/custom-code-reformatting/89052 "2026-10-21T22:06:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wes\_Westhaver](https://forum.xojo.com/user_avatar/forum.xojo.com/wes_westhaver/32/257_2.png) [@Wes\_Westhaver](https://forum.xojo.com/u/Wes_Westhaver)\
**Post date:** [October 21, 2026, 10:06pm UTC](https://forum.xojo.com/t/custom-code-reformatting/89052/1 "2026-10-21T22:06:35Z")

</div>

I was just browsing around in the Xojo help documentation and came across this subject:

Custom code reformatting

There wasn’t a lot there in the way of examples but it got me wondering if it could address something that has bugged the heck out of me for quite some time. When I first started using Xojo the Select Case structure was fine. But after a while a change was made to Xojo that really messed it up. I like to see the select case structured like this:

```auto
Select Case x

  Case a
    Do a thing

  Case b
    Do another thing

  Case c
    Do yet another thing

End Select

```

Indentation typically conveys ownership through hierarchy. Currently Xojo presents it like this:

```auto
Select Case x

Case a
  Do a thing

Case b
  Do another thing

Case c
    Do yet another thing

End Select

```

This structure does not convey the idea that each “Case” is owned by the Select Case/End Select structure. It makes it look like Select, Case, Case, Case, End are just sequential statements without a parent child relationship.

Is it just me or does this bother anyone else???

So, is it possible to use the “Custom code reformatting” feature of Xojo to bring back the old way of presenting the Select Case structure?

-Wes

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [October 21, 2026, 11:35pm UTC](https://forum.xojo.com/t/custom-code-reformatting/89052/2 "2026-10-21T23:35:50Z")

</div>

> [@Wes\_Westhaver](#):
>
> bother

what me bother was i can not use a space at first char.

about select case, seems its because code folding do it wrong.
