Is there any way to generate a Java formatting configuration file without installing/upgrading Eclipse and exporting it?
I want a new default configuration file for each new version of Eclipse so I can see what changed/how our coding convention should be adapted.
The class is org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants
Exporting Java formatting settings from a new installation of Eclipse results in an empty file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="22"/>
It should have all possible settings with their default values.
Create a new profile from any of the built-ins and export profiles (all in one file). Built-ins are not exported but custom ones.
Preferences: Java -> Code Style -> Formatter
Regarding the question
Eclipse formatter code seems to have had a low volume of changes per year so it's probably better to look at git log first than exporting the settings and manually compare with previous.