1

This is a follow-up to a prior question I asked a while back.

To summarize, I prefer to have begin statements show on the same line, rather than the next line. However, as a result of this, case statements do not format very friendly with the default settings:

case SomeEnum of
  seOne: begin

    end;
  seTwo: begin

    end;
  seThree:
    ;
  seFour:
    DoSomething;
end;

I'm trying to figure out how to make it format like so instead:

case SomeEnum of
  seOne: begin

  end;
  seTwo: begin

  end;
  seThree: ;
  seFour: DoSomething;
end;

However, I cannot find the appropriate options to make this change.

How do I make case statements format as shown above?

Community
  • 1
  • 1
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327

1 Answers1

5

Your current setup needs two modifications. Set "indent case contents" to false in "indentation" options and "line breaks before single instructions in control statements" to 'no' in "line breaks" options.

Sertac Akyuz
  • 54,131
  • 4
  • 102
  • 169