Our ActionScript coding conventions state that case statements must not have braces, as the break clearly indicates where the end of a case is.
We use braces around the whole switch, but not around the individual cases.
e.g.
switch (parameter)
{
case (something):
somethingHappens();
break;
case (anotherThing):
lotsOfThings();
break;
default:
stuff();
break;
}
I'm sure I could edit your code enough to make this happen, but it'd be nicery (and easier to deal with updates) if it was implemented properly.
Your tool is going to be invaluable to us, as our current flash engine is using old coding standards, and being able to hit a button to format the lot is saving us heaps of time.
Thanks
Gareth
Have you tried the option at Windows->Preferences->FlexFormatting->ActionScript->Tweaks? Look at the "Preformatting options" section about halfway down. I'm not sure if you tried this option and it didn't do what you wanted, or if you didn't find it (because there are a lot of options and it's buried).