Style xml is taken from:
https://code.google.com/p/google-styleguide/source/browse/trunk/eclipse-java-google-style.xml
In Eclipse Luna (Version 4.4.1) go to:
- Window
- Preferences
- Java
- CodeStyle
- Formatter
- Import the eclipse-java-google-style.xml
But I get this message:
This profile has been created with a more recent Eclipse build than the one you are using. Some older settings might be reset to their default values and newer settings are ignored. Please note that upgrading profiles from older to newser builds is fully supported.
Does someone knows the problem? At the moment eclipse Luna 4.4.1 should be the newest eclipse version, so what can I do to resolve this?
Or another question: Does someone knows other good java coding standard compliant format.xml's?
Work around:
Here's a direct link to the one from before the Feb '14 commit: https://raw.githubusercontent.com/google/styleguide/0249a38579160e135cbd7eb5099898611683200e/eclipse-java-google-style.xml