Jump to content
hsvandrew

Class Completion

Recommended Posts

Is there an option (or plugin) to get class completion to work in a way where all new procedures & functions will appear at the bottom of the unit or in the same order as its declared, rather than in some kind of alpha sorted location?

 

The help topic https://docwiki.embarcadero.com/RADStudio/Sydney/en/Using_Class_Completion says "If your declarations and implementations are sorted alphabetically, class completion maintains their sorted order. Otherwise, new routines are placed at the end of the implementation section of the unit, and new declarations are placed in private sections at the beginning of the class declaration."

 

But I don't really know what this means in practice and I can't find any logical settings to control the behaviour...

 

Example:

 

TFoo = class(Tobject)

public

//Containers

procedure Zoo;

//Animals

procedure Cat;

procedure Dog;

end;

 

I want the same order to be preserved when creating the implementation.

 

Share this post


Link to post
5 hours ago, hsvandrew said:

Is there an option (or plugin) to get class completion to work in a way where all new procedures & functions will appear at the bottom of the unit or in the same order as its declared, rather than in some kind of alpha sorted location?

Yes, there is "DDevExtension" by Andreas Hausladen. That IDE plugin has an option to disable the alpha-sort class completion (and much more valuable stuff):

 

DDevExtensions_Options.thumb.png.874bb7dd509bb46f50ed432f4b02055b.png

 

For Delphi 2009...10.4.2 you can download this plugin form Andreas' blog:

https://www.idefixpack.de/

 

For Delphi 11 there is a fork on Github:

https://github.com/DelphiPraxis/DDevExtensions/releases

 

  • Thanks 1

Share this post


Link to post

Thank you @Achim Kalwa I hadn't installed that part of the excellent work by Andreas Hausladen (I use the other critical bits).

Still amazes me that these key failures never get actually fixed. Even the alpha sort option doesn't actually work properly.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×