Gonna cross-post this here - let me know if it's o...
# rx
a
Gonna cross-post this here - let me know if it's off topic and I'll delete it. Hey guys - i feel like a dope asking this, but I cannot for the life of me figure out how to get the autoformatter in Android Studio to properly handle multiline method calls. So for example, I have the following code:
Copy code
Observable.just("Foo")
            .map { "Bar" }
            .filter { it == "Baz" }
            .doOnNext { print("Bat") }
            .subscribe { print(it) }
if I try to autoformat it, it puts all the function calls on one line - i.e. it becomes this:
Copy code
Observable.just("Foo").map { "Bar" }.filter { it == "Baz" }.doOnNext { print("Bat") }.subscribe { print(it) }
What option do I need to change in the kotlin code styles to keep the newlines?
n
since you've got a solution in #general you might as well delete it now..