Formatting procedure parameter, function parameter

orca777

Member³
Hi Dev-Team,
this is not the first time I request this ... :-(
formatting

Procedure-parameters are always aligned at the end of the procedure-name which is hard to read specially in a package -Header

Code:
PROCEDURE Log_Link(p_Object_Id           IN t_Guid
                  ,p_Child_Id            IN t_Guid
                  ,p_Event               IN t_His_Event
                  ,p_Link_Table_Name     IN User_Tables.Table_Name%TYPE
                  ,p_Display_Value       IN His_Links.Display_Value%TYPE
                  ,p_Child_Display_Value IN His_Links.Child_Display_Value%TYPE
                  ,p_Transaction         IN His_Entities.Transaction%TYPE)

I would like to have the alignment to the PROCEDURE Key-word, this would result in the same indent of parameter-list of all procedure defs, but i can only achieve similar formatting when i miss-use an -- comment

Code:
PROCEDURE Log_Link
 --
 (p_Object_Id           IN t_Guid
 ,p_Child_Id            IN t_Guid
 ,p_Event               IN t_His_Event
 ,p_Link_Table_Name     IN User_Tables.Table_Name%TYPE
 ,p_Display_Value       IN His_Links.Display_Value%TYPE
 ,p_Child_Display_Value IN His_Links.Child_Display_Value%TYPE
 ,p_Transaction         IN His_Entities.Transaction%TYPE);

Desired formatting ...

Code:
PROCEDURE Log_Link
         ( p_Object_Id           IN t_Guid
         , p_Child_Id            IN t_Guid
         , p_Event               IN t_His_Event
         , p_Link_Table_Name     IN User_Tables.Table_Name%TYPE
         , p_Display_Value       IN His_Links.Display_Value%TYPE
         , p_Child_Display_Value IN His_Links.Child_Display_Value%TYPE
         , p_Transaction         IN His_Entities.Transaction%TYPE );

Does this not look much cleaner - additionally a space after -comma option should exist

Another issue is with calling functions/procedures. In a declaration section it's useful to order the parameter vertically, but not if you call them - the vertocal order or parameters of a function/procedure call should be separated from the vertical order of a SELECT Attribute list/Procedure defintion ...

Calling a function/procedure with
 
Last edited:
Back
Top