Reputation: 8190
Recently I just updated my android studio. I noticed that when I try to format my code, it ended up like the image below? Can we make it like this instead:
openCameraObservable
.debounce(200, TimeUnit.MILLISECONDS)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe({}, {})
Upvotes: 0
Views: 35
Reputation: 93581
Settings -> Editor -> Code Style -> Kotlin -> Wrapping and Braces -> Chained Function Calls
Set it to "Wrap if long" or "Wrap always"
Upvotes: 1