3
votes

When I code in Delphi XE and need a new procedure/function in another unit (for example on a datamodule) then I miss the Visual Studio feature where I can just type the new method name and use the "Create method stub" feature:

Example in Visual Studio

or using CodeRush the "Declare method" refactoring:

CodeRush example

I prefer this TDD style development as it is faster than first switching to the data module for example, navigating to the interface section and creating the procedure/function myself there.

Do anybody know how I can achieve that in Delphi XE using plugins/add-ins etc.?

3

3 Answers

5
votes

Model Maker Code Explorer is what you need. I use this all the time - various ways to trigger it, but it will take the parameters that you have in your code and work out what they should be, then create the template code. You can also define all sorts extra, but MMX is the business for this sort of thing.

1
votes

RAD Studio is not Visual Studio. AFAICT, RAD Studio does not have such a feature. The only thing that comes close is class completion, but then you'll have to declare the method in the interface first. There is something like it for variables, but not for methods.

1
votes