Skip to content

Conversation

@fbricon
Copy link
Collaborator

@fbricon fbricon commented Jan 16, 2026

Should help with #1818

Given this vscode setting:

"java.settings.url": ".vscode/java.prefs",

If .vscode/java.prefs contains org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line, then new java file contents put the opening brace to the next line.

next_line, next_line_shifted (indents brace on next line) and end_of_line (the default value) are currently supported in this PR.

new_file_brace_position.mp4

Updates to the .prefs file currently need a vscode restart to take effect (until I fix eclipse-jdtls/eclipse.jdt.ls#3679), it's out of scope of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant