XIDE Sort entities
Posted: Tue Dec 10, 2024 2:58 pm
Chris,
just wanted to ask you, how you "do" the red line divider in the source editor, (i.e., decide, "where" to put it), as i thought building a "sort entities" tool might make a nice holiday project - only to find, you already implemented this, albeit "experimental"...
A first try let me a bit puzzled - the test prg was historically:
Class
Constructor
Method pshNew
Method Append
Acccess Name4P
Acccess Name4w
after sorting:
Class
Constructor
Method Append
Access Name4P
Access Name4W
Method pshNew
Does that mean, you sort Class, Constructor, and then "only" alphabetically, following the name? As you already do in the Project Explorer "pure alphabetics", i'd probably prefer here a "sort by entitiy type" - Class, Constr, Destructor Access/Assign (paired, if exists), Method. (Ideally, saved/editable in .cfg...)
(BTW, you might have a look at Destructor Statement in the help, the content seems a bit lost ....)
just wanted to ask you, how you "do" the red line divider in the source editor, (i.e., decide, "where" to put it), as i thought building a "sort entities" tool might make a nice holiday project - only to find, you already implemented this, albeit "experimental"...
A first try let me a bit puzzled - the test prg was historically:
Class
Constructor
Method pshNew
Method Append
Acccess Name4P
Acccess Name4w
after sorting:
Class
Constructor
Method Append
Access Name4P
Access Name4W
Method pshNew
Does that mean, you sort Class, Constructor, and then "only" alphabetically, following the name? As you already do in the Project Explorer "pure alphabetics", i'd probably prefer here a "sort by entitiy type" - Class, Constr, Destructor Access/Assign (paired, if exists), Method. (Ideally, saved/editable in .cfg...)
(BTW, you might have a look at Destructor Statement in the help, the content seems a bit lost ....)