you mean http://wiki.lazarus.freepascal.org/New_IDE_features_since#code_macro_OfAll ?
Yes. Thank you. Sadly, it generates unaligned code, but this is better than manually enumerating all the values.
I left an alignment example below. It looks like the "code insertion" feature eats tabs - so i left comments describing the alignment.
procedure test_code_completion_for_case_statements;
type
enumerated_type = (a, b, c, d, e, f, g);
var
enum:enumerated_type;
begin
case enum of {<- manually aligned case statement}
a: ; {<- aligned with 2 tabs}
b: ; {<- aligned with 2 tabs}
c: ; {<- aligned with 2 tabs}
d: ; {<- aligned with 2 tabs}
e: ; {<- aligned with 2 tabs}
f: ; {<- aligned with 2 tabs}
g: ; {<- aligned with 2 tabs}
end; {<- aligned with 1 tab}
case enum of {<- auto completed case statement}
a: ; {<- aligned with 1 space + 1 tab}
b: ; {<- aligned with 1 tab + 1 space}
c: ; {<- aligned with 1 tab + 1 space}
d: ; {<- aligned with 1 tab + 1 space}
e: ; {<- aligned with 1 tab + 1 space}
f: ; {<- aligned with 1 tab + 1 space}
g: ; {<- aligned with 1 tab + 1 space}
end; {<- keyword "end" aligned with 1 space}
end;
Do you know how to modify built-in macros? I could try to fix this myself.