Strings (all that is written in quotes ") are not modified.Comment lines (with ' or rem) are not modified.For example, if the function is declared as Function HelloWord, from that line, all calls to the function, such as Helloword or helloword are replaced by the HelloWord. Replace all variables that are found in the code after the place in which they are declared, just like then assignation to the name of the function at the point of its declaration, by the same word formatted as was declared.For example, if' is replaced by If, select case by Select Case, msgbox by MsgBox, etc. It replaces all Basic keywords for the same word formatted.They read the names of the constants in the format uppercase / lowercase as written by declaring then sentence Const.They read the names of the variables in the format uppercase / lowercase as written in the declaration line of the function or subroutine by declaring them as arguments, or after sentences Dim, Private, Public, Static or Global.They read the names of the functions and subroutines in the format uppercase / lowercase as written on the declaration line of the function or subroutine.Running this option, can be applied the following actions on the selected code: Press the keyboard shortcut Ctrl + Shift + F.Īctions that the Basic code formatter can do.Click on the Format Basic code button, or.Select all the code module to be formatted, and.Select all function or subroutine you want to format, or.Select the line or lines you want to format, or.Used in conjunction with the option Re-indenting, allows to get a code with a clear and structured look. This button allows you to format the code of the selected lines, applying uniform criteria that improve the readability and visual appearance of the code. All spaces and tabs located at the end of lines processed will be removed.If the line ends with the keyword : (label) is indented to level zero.The character used for indentation is the Tab ( Chr(9) ) It is considered as separator decorative lines of code, and be indented to level zero, all beginning with the following text:.The line following a line that begins with the keyword if, which contain the keyword Then after that word, and that contain code, will be indented to the same level, considering that it is an if then else endif on one line sentence.All lines beginning with the keywords ', Rem, Dim will be indented to the level used by the previous line.All lines beginning with one of the keywords Private, Global, Public, Option, Sub, Function are placed at level zero (no indentation), as the lines that contain the keywords End Sub or End Function.To apply Re-indenting follow these rules: Rules that follow the option Re-indenting
0 Comments
Leave a Reply. |