Forum > Editor

Controlling the format of methods signature. How?

(1/1)

EganSolo:
Say I have a method in a class declared as


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Type   MyClass = Class     Procedure MyProcedure(const aStr    : String  ;                           const anInt   : Integer ;                           const aDec   : Extended);  End; 
Hitting Ctrl+Shift+C autogenerates the method implementation as follows:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Implementation  Procedure MyClass.MyProcedure(const aStr: String; const anInt: Integer; const aDec: Extended); 
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Implementation Procedure MyClass.MyProcedure(const aStr    : String  ;                              const anInt   : Integer ;                              const aDec   : Extended); 
Alternatively, is there a setting that would prevent the editor from reformating the signature after I format it manually to my liking?

Thanks!

Navigation

[0] Message Index

Go to full version