square / java-code-styles

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

Make the Kotlin indent 2 spaces. #51

Closed zach-klippenstein closed 6 years ago

zach-klippenstein commented 6 years ago

These options haven't shown up before. I used Export from the settings dialog this time instead of just copying the file from the preferences directory.

NightlyNexus commented 6 years ago

Update Square.xml for now as well?

zach-klippenstein commented 6 years ago

@NightlyNexus Fixed.

letientai299 commented 6 years ago

In square/java-code-styles#47 the indentation change to 4 spaces to follow Google Kotlin Android Style Guide, so why change it to 2 spaces now?

JakeWharton commented 6 years ago

Why change it to 4 when you have hundreds of thousands of existing lines of Kotlin and Java which are 2?