Feedbacker
Feedbacker

Reputation: 959

Is there a way to ignore code style setting in Android Studio

As the title suggests, I would like to have a code style (for Kotlin) in place but ignore a specific rule (specifically "Chained method calls").

This rule should simply not apply when using the code formatting functionality and just let the developer judge on a case-by-case basis.

Upvotes: 2

Views: 485

Answers (1)

kenny_k
kenny_k

Reputation: 3980

You should be able to achieve this with the following configuration inside

Preferences > Editor > Code Style > Kotlin:

chaining settings screenshot

You will also want to activate the setting to preserve your line breaks:

preserve line breaks screen shot

Upvotes: 1

Related Questions