https://kotlinlang.org logo
Title
k

KV

09/15/2020, 5:15 AM
How do I make sure that opening and closing braces have same indentation. Do I need to use any regex for this or is there any rule available? Example :
//INCORRECT 

viewModel.liveData.observe(this, Observer {
launch(url(
            locale = Locale.getDefault().language,
            appName = APP_NAME), window.decorView.rootView) })
//CORRECT

viewModel.liveData.observe(this, Observer {
launch(
            url(locale = Locale.getDefault().language,  appName = APP_NAME), 
            window.decorView.rootView
      ) 
    })
n

no

09/15/2020, 12:24 PM
Wrong channel? This channel is #gradle .
k

KV

09/15/2020, 12:25 PM
Okay sorry for the spam.