Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
trim_trailing_whitespace = true

[*.{cpp,hpp,c,h,cc,hh}]
indent_style = space
indent_size = 2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The HotSpot style guide prescribes 2 space indentation. The rest of the JDK not so much, and
counterexamples abound. For example, java.base/*/native looks to be 4 space indentation
(consistently? I only spot-checked).


[*.java]
indent_style = space
indent_size = 4