Yesterday I discovered the Format Source feature in Delphi, and it saves me a lot of time.
However, I've discovered that it corrupts the layout of anonymous procedures. Is there a setting that can improve this result?
For example, if I have the following code:
procedure TServerThread.cbUpdateStreamProgBar(Precentage: Integer);
begin
Synchronize(
procedure
begin
FrmMain.StreamProgressBar.StepBy(Precentage);
end);
end;
After I auto-format the source code, it is collapsed as follows:
procedure TServerThread.cbUpdateStreamProgBar(Precentage: Integer);
begin
Synchronize( procedure begin FrmMain.StreamProgressBar.StepBy
(Precentage); end);
end;
How can I avoid this?