Does Intellij have a settings option or a plugin to collapse trailing closing brackets?

38 Views Asked by At

To illustrate, I would like a sample function like:

    fun before() {
        val scenario = launchFragmentInContainer<SomeFragment>()
        scenario.onFragment {
            it.viewModel.selected.observe(it) { event ->
                selected = event?.content
            }
        }
    }

...to look like the following when it is not being edited:

    fun before() {
        val scenario = launchFragmentInContainer<SomeFragment>()
        scenario.onFragment {
            it.viewModel.selected.observe(it) { event ->
                selected = event?.content }}}

And then, let's say, when cursor is placed withing the function's body or when an edit starts, the braces would be expanded automatically.

0

There are 0 best solutions below