RFR: 8311227: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim trailing whitespace [v3]
David Linus Briemann
duke at openjdk.org
Tue Mar 11 09:15:57 UTC 2025
On Tue, 11 Mar 2025 09:12:45 GMT, David Linus Briemann <duke at openjdk.org> wrote:
>> Add an .editorconfig to define indentation, trim trailing whitespace and open curly brace position for C++ and Java.
>> This allows various editors to easily infer basics of the coding style.
>
> David Linus Briemann has updated the pull request incrementally with one additional commit since the last revision:
>
> make editorconfig hotspot specific
I see. I didn't understand that the hotspot style guide is only for the hotspot part before.. seems obvious now :)
I like @erikj79 idea and have adapted the PR to this. It now defines `trim_trailing_whitespace` globally and indentation of 2 spaces for c/c++ hotspot code only.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23693#issuecomment-2713264565
More information about the build-dev
mailing list