grandcentrix-AndroidCodeStyle icon indicating copy to clipboard operation
grandcentrix-AndroidCodeStyle copied to clipboard

Keep Lifecycle methods together

Open fjr619 opened this issue 5 years ago • 3 comments

refer to : #3

with kotlin it didn't work

example



override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
}}

    override fun onDestroy() {
        super.onDestroy()
        Timber.e("aaaaa")
    }

    override fun onAttach(context: Context) {
        super.onAttach(context)
    }

then i click auto format opt+cmd+l it will not sort into onattach, onActivityCreated, onDestroy

fjr619 avatar Feb 13 '20 12:02 fjr619

I can confirm this, I have the same problem.

kuzdu avatar Apr 24 '20 07:04 kuzdu

IntelliJ doesn't support rearrange code for Kotlin. Please Upvote KT-25677

passsy avatar Apr 24 '20 08:04 passsy

Thanks for the quick response. I upvoted the ticket 👍

kuzdu avatar Apr 24 '20 08:04 kuzdu