Kingfisher Phuoc
Kingfisher Phuoc

Reputation: 8190

Auto code format does not keep line break

Recently I just updated my android studio. I noticed that when I try to format my code, it ended up like the image below? ImageFormat Can we make it like this instead:

openCameraObservable
            .debounce(200, TimeUnit.MILLISECONDS)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe({}, {})

Upvotes: 0

Views: 35

Answers (1)

Tenfour04
Tenfour04

Reputation: 93581

Settings -> Editor -> Code Style -> Kotlin -> Wrapping and Braces -> Chained Function Calls

Set it to "Wrap if long" or "Wrap always"

Upvotes: 1

Related Questions