...
As an open-source project we are following the Google Java Style guide, emphasizing a few of the more important points in this page.
...
Eclipse and IntelliJ formatter settings
Eclipse
On MacOS "Preferences..." can be found under the "Eclipse" menu.
Set the file encoding to UTF-8
...
No Format |
---|
Window > Preferences > Java > Code Style > Formatter > Import > Import etc/eclipseFormatterProfile.xml |
Then import the "imports" settings file
No Format |
---|
Window > Preferences > Java > Code Style > Organize Imports >
Import etc/eclipseOrganizeImports.importorder |
Avoid using auto-formatting - "Ctrl + Shift + F" for an entire file while changing a part of the file. Especially for an existing file as it makes it difficult to know the exact difference by comparing revisions.
...