ENVY/QA User Guide : Code Formatter : Formatting Conditional Statements : Indent #ifFalse: (When Not Lined Up)
Indent #ifFalse: (When Not Lined Up)
If this option is enabled and ifTrue:ifFalse: is not lined up, ifFalse: is indented.
Several related options help you obtain your preferred formatting of #ifTrue:ifFalse:. These include:
line up #ifTrue:ifFalse: (in the category Conditional Statements)
apply rule (line up #ifTrue:ifFalse:) to all (in the Conditional Statements category)
start square brackets on the same line (in the Brackets category)
OFF
(do not indent)
self isEnabled ifTrue: [
self setPositionTo: 12 usingGlobalFactorOf: 15]
ifFalse: [
self setPositionTo: 10 usingGlobalFactorOf: 10]
ON
(indent)
self isEnabled ifTrue: [
self setPositionTo: 12 usingGlobalFactorOf: 15]
ifFalse: [
self setPositionTo: 10 usingGlobalFactorOf: 10]
Last modified date: 06/30/2015