square / java-code-styles

IntelliJ IDEA code style settings for Square's Java and Android projects.
2.95k stars 769 forks source link

Reduce Kotlin continuation indent to 2 spaces #67

Closed jrodbx closed 5 years ago

jrodbx commented 5 years ago

Keeps it consistent with the other indent settings

swankjesse commented 5 years ago

I don’t want this.

swankjesse commented 5 years ago

In particular, continuations are meaningfully different from other indents, and making them look different is good.

oldergod commented 5 years ago

Keeps it consistent with the other indent settings

If indent were 4 spaces, the continuation ones would be 8, right?

swankjesse commented 5 years ago

Google indents Java +2, wraps +4: https://google.github.io/styleguide/javaguide.html#s4.5.2-line-wrapping-indent

Sun’s old guide indents Java +4, wraps +8: https://www.oracle.com/technetwork/java/javase/documentation/codeconventions-136091.html#248