google / styleguide

Style guides for Google-originated open-source projects
https://google.github.io/styleguide/
Apache License 2.0
37.53k stars 13.3k forks source link

number_of_blank_lines_at_end_of_method_body is missing in GoogleStyle raw style #860

Open drakgoku opened 1 month ago

drakgoku commented 1 month ago

Can you add this line

<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_end_of_method_body" value="1"/>

in your raw styles? https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml

When we use the VSC extension https://github.com/redhat-developer/vscode-java/wiki/Formatter-settings to work with Java, we have a problem when formatting. vscode-java is using the Eclipse JDT.LS language server, so yes, it's definitely based on Eclipse.

Here I discuss it in detail and its solution. Related topic. https://github.com/redhat-developer/vscode-java/issues/3694#issuecomment-2430344025