Code Style

barbeau edited this page Aug 3, 2012 · 5 revisions

Eclipse Configuration

If you are using Eclipse for development, we have a number of files to help you maintain consistent project code styling.

All settings files can be checked out from the GitHub repository:



We will also provide direct links to files where applicable.

Code style/formatting

Project -> Properties -> Java Code Style -> Formatter -> Import...


Or download:

XML style/formatting

Unfortunately, you have to manually configure XML formatting under Window->Preferences->XML->XML Files->Editor:

  • Line width: 120
  • Indent using spaces
  • Indentation size: 2

XML style/formatting

Import organization

Project -> Properties -> Java Code Style -> Organize Imports -> Import...


Or download:

Class Member Sort Order

Class Member Sort Order