-
Notifications
You must be signed in to change notification settings - Fork 72
Code Style
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:
git://github.com/OneBusAway/onebusaway.git
Specifically:
https://github.com/OneBusAway/onebusaway/tree/master/eclipse
We will also provide direct links to files where applicable.
Project -> Properties -> Java Code Style -> Formatter -> Import...
eclipse/code-style/org.onebusaway-format.xml
Or download:
https://raw.github.com/OneBusAway/onebusaway/master/eclipse/code-style/org.onebusaway-format.xml
Unfortunately, you have to manually configure XML formatting under Window->Preferences->XML->XML Files->Editor:
- Line width: 120
- Indent using spaces
- Indentation size: 2
Project -> Properties -> Java Code Style -> Organize Imports -> Import...
eclipse/code-style/org.onebusaway.importorder
Or download: