code beautifier

RobertK

Member³
5.1.3.704

Is there a way to customize the Beautifier
so that it indents "IF...THEN" statement like this:

IF l_a = TRUE THEN
l_align := 'I want this line align with the next word after IF' ;
END IF;

that is, aligning the 2nd line with the word after IF....this should definitely be the default behavior.
 
This is controlled by the indent size. By default it is 2, and setting it to 3 will align the IF statement like you want, but will indent all other blocks with 3 as well.
 
I don't agree that indentation to after the keyword should "definately be the default". A preference, sure, but not a default.

The Eclipse IDE has an auto-indent mode that performs this feature (as a preference), where the next like after an IF is indented 3 more spaces, and the next line after a FOR is indented 4 more spaces (for example).
 
Back
Top