If you have a multi-line IF statement, the default indent can be a little difficult to read:
If SomeConditionA _
AndAlso SomeConditionB _
AndAlso SomeConditionC Then
DoSomething()
End If
I can come up with several solutions to this problem, for example:
- indent the second and third lines by 8 instead of 4 spaces,
- Do not step back from the second and third lines,
- adding an empty line after the third line,
- ...
But I would like to know if there is some well established or even officially recommended coding style for this case.
source
share