Skip to content
JonasKunze edited this page Sep 8, 2014 · 11 revisions

Code formatting

To prevent git conflicts and ugly histories, please always format your code with the eclipse formatter ctrl+shift+f. Unfortunately, unlike for Java projects, eclipse does not provide an automatic formatting at saving a file. Therefore please try to get used to always press a combination of ctrl+s and ctrl+shift+f!

Code conventions

Here's a rough list of conventions I try to stick to:

  • CamelCase (don't use '_' in Methode/Variable names expect in following point)
  • Instance variables are lower case and end with _ e.g. int someVar_;
  • Class names are capitalized as in class SomeClass {
  • Method names are in lower case e.g. void doSomething() {

Clone this wiki locally