Recent

Author Topic: Controlling the format of methods signature. How?  (Read 1383 times)

EganSolo

  • Full Member
  • ***
  • Posts: 217
Controlling the format of methods signature. How?
« on: May 14, 2021, 01:16:25 am »
Say I have a method in a class declared as

Code: Pascal  [Select][+][-]
  1. Type
  2.   MyClass = Class
  3.      Procedure MyProcedure(const aStr    : String  ;
  4.                            const anInt   : Integer ;
  5.                            const aDec   : Extended);
  6.   End;
  7.  

Hitting Ctrl+Shift+C autogenerates the method implementation as follows:

Code: Pascal  [Select][+][-]
  1. Implementation
  2.   Procedure MyClass.MyProcedure(const aStr: String; const anInt: Integer; const aDec: Extended);
  3.  

Is there a configuration setting in the editor that would replicate the layout of the interface method's signature in the implementation, so that I would get:

Code: Pascal  [Select][+][-]
  1. Implementation
  2.  
  3. Procedure MyClass.MyProcedure(const aStr    : String  ;
  4.                               const anInt   : Integer ;
  5.                               const aDec   : Extended);
  6.  

Alternatively, is there a setting that would prevent the editor from reformating the signature after I format it manually to my liking?

Thanks!


 

TinyPortal © 2005-2018