Class completion: why prepend instead of append? lazarus / 6-IDE-CodeTools ---------------------------------------------------------------------- Leledumbo · 2015-10-25 17:52 Been wondering this for a long time, I wonder why class completion works by prepending on existing implementation section instead of appending it? For example, if I have: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i type  TClass1 = class    procedure p;  end;   TClass2 = class    procedure p;  end;end; and do class completion on TClass1 followed by TClass2, I will get: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i { TClass2 } procedure TClass2.p;begin end; { TClass1 } procedure TClass1.p;begin end; instead of: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i { TClass1 } procedure TClass1.p;begin end; { TClass2 } procedure TClass2.p;begin end; For consistency with order in interface section, I'd like to get the second version. I don't see anything that makes it possible in existing code tools options, but I might be wrong. ---------------------------------------------------------------------- Thaddy · 2015-10-25 18:06 Mm, while testing some stuff regarding generics today, I noticed that the older versions of Delphi try to append, which screws up your code (Ahum, writing - not compiling - generics code in D7 IDE , Ahum) It seems to me that if you prepend the code it avoids that kind of issues. Ahum. As long as you navigate with the ctrl-shift I see no problem except natural order. But you have a point there. Just gave you an example why it may be useful or even intended in the Lazarus IDE. ---------------------------------------------------------------------- Graeme · 2015-10-25 23:21 I unfortunately don't know the solution, but the behaviour has been bugging me too. :-/ ---------------------------------------------------------------------- Leledumbo · 2015-10-26 01:15 Quote from: Thaddy on October 25, 2015, 07:06:41 pmAs long as you navigate with the ctrl-shift I see no problem except natural order. That's the original problem actually. My coding needs these days is in server environment. Sometimes I need to change code right on the server to make sure things work first (there are certain occasions when things are hard to test locally, thus needing on site testing), and only then bring it back to my computer to commit it to VCS. Certainly I can't use Lazarus there for the interface/implementation jump :/ unless we have FreeVision backend for LCL and Lazarus can be compiled for it.