Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically implement inherited abstract methods in Delphi XE

Is it possible to let the IDE automatically implement inherited abstract methods in Delphi XE? In Java and C# IDEs it's a common functionality like pressing ALT+SHIFT+F10 in Visual Studio or ALT+RETURN in IntelliJ IDEA.

Without this I always have to look up manually which methods have to be implemented and copy their declarations, which really is something I shouldn't have to do nowadays!

like image 520
Bunkerbewohner Avatar asked Mar 14 '11 21:03

Bunkerbewohner


1 Answers

You can use ctrl+space in the class declaration to get a list of all the methods you might want to override (or implement from an interface). It does however not tell you which is abstract but once you figured that out you will get the declaration for free by selecting the method(s) from the list. And after that you can of course use class completion ctrl+shift+c to generate the code in implementation section.

like image 157
Mikael Eriksson Avatar answered Sep 28 '22 13:09

Mikael Eriksson