Hi, anyone knows how to allow custom setters with ...
# announcements
l
Hi, anyone knows how to allow custom setters with braces to be one line in IntelliJ/Android Studio? What I have is this:
Copy code
var dismissHandleText: CharSequence get() = dismiss_handle.text
        set(value) {
            dismiss_handle.text = value
        }
But what I'm looking for is this:
Copy code
var dismissHandleText: CharSequence get() = dismiss_handle.text
        set(value) { dismiss_handle.text = value }
The problem is that whenever I hit `cmd+option+L`/`ctrl+alt+L`, the IDE formats back to the first version.
☝️ 1