ENVY/QA User Guide : Code Formatter : Formatting Conditional Statements : Apply Rule (Line up #ifTrue:ifFalse:) to All
Apply Rule (Line up #ifTrue:ifFalse:) to All
If this option is enabled, the Line up #ifTrue:ifFalse: selection is always applied to short or long statements.
If the Line up #ifTrue:ifFalse: option is on, ifTrue: is always on a new line.
If the Line up #ifTrue:ifFalse: option is off, ifTrue: is always on the same line.
Several related options help you obtain your preferred formatting of #ifTrue:ifFalse:. These include:
line up #ifTrue:ifFalse: (in the Conditional Statements category)
indent #ifFalse: (when not lined up) (in the Conditional Statements category)
start square brackets on the same line (in the Brackets category)
OFF
(do not apply the lineup option to short statements)
^self isEnabled ifTrue: [self] ifFalse: [nil]
ON
(and the lineup option is ON)
^self isEnabled
ifTrue: [self]
ifFalse: [nil]
ON (and the lineup option is OFF)
^self isEnabled ifTrue: [
self]
ifFalse: [
nil]
 
 
Last modified date: 06/30/2015