Translations:Manual:Coding conventions/51/en

There is an eclipse plugin called PDT Extensions that is helpful for formatting the code. A formatting template can be downloaded here.