Which eclipse-formatter setting in vscode will accomplish the following formatting, focusing specifically on the parameter alignment?
Current
public ResponseEntity retrieveAgreement(final String one, final Long someId,
final Long anotherId, final Long otherPAram) {
// Omitted
}
Desired
public ResponseEntity retrieveAgreement(final String one,
final Long someId,
final Long anotherId,
final Long otherParam) {
// Omitted
}
About Java Formatting, you can refer to Formatting and Linting.
Download GoogleStyle.xml and edit the following settings:
Then in vscode settings.json, set
You can keep the formatting style that you want instead of parameters being formatted to one line: