More formal programming style
Trim adds a space to each side of a binary operator.
The Delimiter is followed by a comma instead of a space.
Add a space after each keyword
Statement in a row
Do not have spaces before the semicolon (;).
No space is added between the brackets and parameters of the callback function.
Trim does not add spaces between the unary operator and the operand.
Add a space to each side of a binary operator:
Console. WriteLine ("{0}", result/13); // recommended
Console. WriteLine ("{0}", result/13); // not recommended
Add a space after each comma instead of before:
Console. WriteLine ("{0}", result/13); // recommended
Console. WriteLine ("{0}", result/13); // not recommended
Add a space after each keyword:
If (OneLine (comment)... // recommended
If (OneLine (comment)... // not recommended
Do not have spaces before semicolons:
Console. WriteLine ("{0}", result/13); // recommended
Console. WriteLine ("{0}", result/13); // not recommended
No space is added between the brackets and parameters of the function:
If (OneLine (comment)... // recommended
If (OneLine (comment)... // not recommended
There is no space between the unary operator and the operand:
++ KeywordCount; // recommended
++ KeywordCount; // not recommended
Author: ershouyage