develop:coding-guide-en
Table of Contents
Code Formatting
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 |
develop/coding-guide-en.txt · Last modified: 2022/12/15 16:44 by 127.0.0.1
