Class completion in Delphi is a big time-saver, but I haven't found a way to customize it.
I would like a getter and setter for a property to be grouped together instead of being thrown all over my unit; The interface part is generated properly, but the implementation section becomes a mess if you leave things up to the IDE. I want methods to be ordered like this by default:
function TAaa.getAaa();
procedure TAaa.setAaa();
procedure TAaa.Baa();
function TAaa.getCow();
procedure TAaa.setCow();
procedure TBbb.getAaa()
I want the implementation section to be in the same order as the interface;
I want the body of a generated method to look something like this:
.
procedure TMyClass.MyProc;
begin
{ TODO -oWouter -cimplement autogenerated stuff : implement Procedure MyProc() }
raise Exception.create('procedure TMyClass.MyProc() is not yet implemented');
end;
Are there tools around to do this, or is it needed to dive into the opentools API to get something like this done?
Related question: In what order does Class Completion put its results?