xojo-format-code icon indicating copy to clipboard operation
xojo-format-code copied to clipboard

Insert/Remove blank lines where necessary

Open jcowgar opened this issue 11 years ago • 0 comments

For example, a common rule is to separate variable declarations from executing code:

Dim i As Integer
Dim b As String
DoSomeCode

Would become:

Dim i As Integer
Dim b As String

DoSomeCode

Another is compressed vs. expanded select/if statements:

Select Case Name
Case "John"
    DoSomething
Case "Jeff"
    DoSomethingElse
End Select

Would become:

Select Case Name
Case "John"
    DoSomething

Case "Jeff"
    DoSomethingElse
End Select

jcowgar avatar Jul 24 '13 13:07 jcowgar