https://kotlinlang.org logo
#compose
Title
# compose
g

Grigorii Yurkov

10/28/2020, 9:40 AM
Is there hotkey to turn this
Copy code
ButtonText(text = "Text", onClick = {}, modifier = Modifier.padding(top = 16.dp))
into this
Copy code
ButtonText(
      text = "Text",
      onClick = {},
      modifier = Modifier.padding(top = 16.dp)
)
I am so tired to do this manually.
g

gildor

10/28/2020, 9:42 AM
there is a quick fix for this
place cursor on one of arguements, Alt + Enter, “Put arguments on separate lines”
4
g

Grigorii Yurkov

10/28/2020, 9:43 AM
Oh, thank you very much
a

alorma

10/28/2020, 9:49 AM
also, add trailing comma after the last parameter, it will help