Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I modify the code generated by Class-Completion (ctrl-shift-c)

I would like to modify class completion so that every method that is created contains a raise ENotImplemented.Create;

Does anybody know how to customize this behavior?

update:
I would like solution that is not dependent on a third parties.
From where does the IDE take its templates?
Is there a way through OTA?

like image 287
Tobias R Avatar asked Mar 12 '12 09:03

Tobias R


1 Answers

The simple answer is that there is no way to actually modify the markup generated by RAD Studio's (Delphi/C++ Builder) Class Completion engine. I have exhaustively attempted to do this, to no avail.

I am told (from a very reliable source) that the Class Completion engine is hard-coded into the IDE, rather than templated, with no intended interface exposed through the Open Tools API to change its behaviour.

The best alternative solution is ModelMaker Code Explorer (be sure not to accidentally order "ModelMaker" instead as this is a totally different piece of kit). As I understand it, ModelMaker Code Explorer essentially overrides the built-in Class Completion engine with its own, and provides the necessary exposure to customize the code markup as you require.

like image 95
LaKraven Avatar answered Nov 13 '22 09:11

LaKraven