Code Style

File names

Avoid using underscores in file names, use dashes instead.

Right Wrong
mylong-filename.txt mylong_filename.txt

Lower case chars only.

Formatting rules


C/C++ Source

Setting Value
style K&R
tab policy spaces only
identation size 2
tab size 2 spaces
new line line feed only; unix style
encoding UTF-8


Java Source

Setting Value
tab policy spaces only
identation size 2
tab size 2 spaces
new line line feed only; unix style
encoding UTF-8


XML Source

Setting Value
tab policy spaces only
identation size 2
tab size 2 spaces
new line line feed only; unix style
encoding UTF-8

Personal Tools