What Is Style?

Style is that personal touch, that organizational structure, that only you can bring to a block of code. Although the topic of this entire book is style, in this chapter style refers to the aesthetic appearance of the source code itself, not the style of the program logic, nor the style of the application user interface.

The Visual Basic development environment imposes a certain amount of style on your code whether you wish it to or not. All keywords are forced into mixed case whenever you add or modify a line of code. Extra space is also removed from most lines with three notable exceptions: the whitespace before in-line comments, the whitespace before As clauses, and spaces after the multi-statement separator (":"). Still, most ...

Get Visual Basic® Style Guide, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.