Google CodeStyle Formatter for Eclipse shows version warning
The xml style 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) navigate to:
- Window
- Preferences
- Java
- CodeStyle
- Formatter
- Import eclipse-java-google-style.xml
But I am getting this message:
This profile was created with a newer Eclipse build than the one you are using. Some old settings can be reset to their default values ββand newer settings are ignored. Please note that updating profiles from old to newsgroups is fully supported.
Does anyone know the problem? Eclipse Luna 4.4.1 should be the newest version of eclipse at the moment, so what can I do to fix this issue?
Or another question: does anyone know of any other good standard java encoding that is compatible with the format.xml format?
source to share
-
Use old Formatter profile or 2. Update Eclipse
-
Here's a direct link to what was before Feb '14 commit: https://raw.githubusercontent.com/google/styleguide/0249a38579160e135cbd7eb5099898611683200e/eclipse-java-google-style.xml
-
Better solution is to use a newer version of Eclipse (especially this will be a year from now, now)
You could potentially look at the diff and try to make your own that adheres to the newest style guide without breaking Eclipse imports, but not worth it IMO.
source to share