Sunday 22 February 2015

Space recognition trick (Memorize program's code)

Module Module1

    Sub Main()
        FileOpen(1, "D:/hello.txt", OpenMode.Input)

        While Not EOF(1)
            Console.WriteLine(LineInput(1))
        End While

        Console.ReadLine()

    End Sub

End Module


For example:

Module is the most left of the code.
Sub Main() is space-out 1 space from Module and shifted a litle bit to the right.
FileOpen is shift a litle bit to the right and after the Sub Main.
While Not is aligned with FileOpen and space-out 1 space from FileOpen.
Console.writeline is shifted a litle bit to the right and inside While Not and End While.
End While is aligned to While Not
Console.readline is space-out 1 space from EndWhile and aligned to EndWhile
End Sub is space-out 1 space from console.readline() and aligned with Sub Main().
EndModule is space-out 1 space from End Sub and aligned with Module.

No comments:

Post a Comment