How do one convert a block of variable assignments, e.g.:
private final String s1 = \"10011\";
private final String
EclipseFormatter solved this problem perfectly which supports align fields, assignments and variable declarations in columns.
You can use the Eclipse plugin columns4eclipse:
If you want to be able to align assignments and not only field declarations, this plugin does an excellent job: OCDFormat.
It works in all text files, not only java.
Preferences → Java → Code Style → Formatter → goto Edit and check the Align fields in columns
: