You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add formatter options to format multiple parameters with new lines #2483
changed the title [-]Add formatter options to format parameters with new lines[/-][+]Add formatter options to format multiple parameters with new lines[/+]on May 30, 2022
I found that I needed to set it to org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=49 (instead of 48) to force the setting. Otherwise it's optional.
Activity
[-]Add formatter options to format parameters with new lines[/-][+]Add formatter options to format multiple parameters with new lines[/+]rgrunber commentedon May 31, 2022
You could try what's referenced in eclipse-jdtls/eclipse.jdt.ls#1717 (comment) . There are many different formatting options supported.
I found that I needed to set it to
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=49(instead of 48) to force the setting. Otherwise it's optional.You could also create your own formatter as described in https://github.com/redhat-developer/vscode-java/wiki/Formatter-settings . The option would be
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation" value="49"/>